Commit 1e096c6c authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1685 from paroj:ovis_pp

parents 1c105ce8 77f1d272
...@@ -383,7 +383,12 @@ public: ...@@ -383,7 +383,12 @@ public:
void removeEntity(const String& name) { void removeEntity(const String& name) {
SceneNode& node = _getSceneNode(sceneMgr, name); SceneNode& node = _getSceneNode(sceneMgr, name);
node.getAttachedObject(name)->detachFromParent(); node.getAttachedObject(name)->detachFromParent();
// only one of the following will do something
sceneMgr->destroyLight(name);
sceneMgr->destroyEntity(name); sceneMgr->destroyEntity(name);
sceneMgr->destroyCamera(name);
sceneMgr->destroySceneNode(&node); 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