Reset: model lib can drop static root.

This commit is contained in:
James Turner
2013-07-27 14:46:27 +01:00
parent 0186cbb7b7
commit aa3458f69c
2 changed files with 7 additions and 0 deletions

View 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;

View 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)