Fixed bug that causes crash if Focus node wasn't found

This commit is contained in:
jonasstrandstedt
2014-12-04 23:27:18 +01:00
parent 40c537f858
commit 11e867aaf1
2 changed files with 2 additions and 1 deletions

View File

@@ -326,6 +326,7 @@ bool SceneGraph::loadSceneInternal(const std::string& sceneDescriptionFilePath)
_root->setName(SceneGraphNode::RootNodeName);
_nodes.push_back(_root);
_allNodes.emplace(SceneGraphNode::RootNodeName, _root);
_focus = SceneGraphNode::RootNodeName;
Dictionary dictionary;
//load default.scene