From aa3458f69cb99f139493d6f21cdd9abd920286da Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 27 Jul 2013 14:46:27 +0100 Subject: [PATCH] Reset: model lib can drop static root. --- simgear/scene/model/modellib.cxx | 5 +++++ simgear/scene/model/modellib.hxx | 2 ++ 2 files changed, 7 insertions(+) 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) -- 2.39.5