Commit 77f1d272 authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: fix removing lights and cameras from scene

parent 4f3c9fcb
......@@ -383,7 +383,12 @@ public:
void removeEntity(const String& name) {
SceneNode& node = _getSceneNode(sceneMgr, name);
node.getAttachedObject(name)->detachFromParent();
// only one of the following will do something
sceneMgr->destroyLight(name);
sceneMgr->destroyEntity(name);
sceneMgr->destroyCamera(name);
sceneMgr->destroySceneNode(&node);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment