Merge pull request #124 from Paraknight/master

Fixed bug that causes crashes when removing objects from the scene.
Fixes issue with removing objects from scene that don't have materials (e.g. cameras).
Merge pull request #126 from saebyn/fix-object-removal

Fixes issue with removing objects from scene that don't have materials (...