]> git.mxchange.org Git - simgear.git/commitdiff
Reset: model lib can drop static root.
authorJames Turner <zakalawe@mac.com>
Sat, 27 Jul 2013 13:46:27 +0000 (14:46 +0100)
committerJames Turner <zakalawe@mac.com>
Wed, 9 Oct 2013 07:59:21 +0000 (09:59 +0200)
simgear/scene/model/modellib.cxx
simgear/scene/model/modellib.hxx

index 281c641392a2c2c0ec9d6db7d306574cc9f2c950..8a55151090905f6eab95996d73406eed93c3da69 100644 (file)
@@ -57,6 +57,11 @@ void SGModelLib::init(const string &root_dir, SGPropertyNode* root)
     static_propRoot = root;
 }
 
+void SGModelLib::resetPropertyRoot()
+{
+    static_propRoot.clear();
+}
+
 void SGModelLib::setPanelFunc(panel_func pf)
 {
   static_panelFunc = pf;
index 287c2e807ac26102f88707561c70613d778ff452..7e8a5a8ed56ba675ad3c8d6c0ad0fa6a4065d3d7 100644 (file)
@@ -46,6 +46,8 @@ public:
 
     static void init(const std::string &root_dir, SGPropertyNode* root);
 
+    static void resetPropertyRoot();
+    
     static void setPanelFunc(panel_func pf);
     
     // Load a 3D model (any format)