From: James Turner Date: Sat, 27 Jul 2013 13:46:27 +0000 (+0100) Subject: Reset: model lib can drop static root. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa3458f69cb99f139493d6f21cdd9abd920286da;p=simgear.git Reset: model lib can drop static root. --- diff --git a/simgear/scene/model/modellib.cxx b/simgear/scene/model/modellib.cxx index 281c6413..8a551510 100644 --- a/simgear/scene/model/modellib.cxx +++ b/simgear/scene/model/modellib.cxx @@ -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; diff --git a/simgear/scene/model/modellib.hxx b/simgear/scene/model/modellib.hxx index 287c2e80..7e8a5a8e 100644 --- a/simgear/scene/model/modellib.hxx +++ b/simgear/scene/model/modellib.hxx @@ -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)