implemented metascene spawn point/rot
[laserbrain_demo] / src / scene.cc
index a31a3ce..683c9ec 100644 (file)
@@ -182,6 +182,8 @@ static void find_nodes_rec(std::list<SceneNode*> *res, SceneNode *tree, const st
 
 Scene *Scene::extract_nodes(const char *qstr)
 {
+       if(!nodes) return 0;
+
        std::regex re{qstr};
 
        std::list<SceneNode*> nodelist;