- For shutdown/reset make sure all properties describing a canvas
are removed and also not restored after the reset.
setStatusFlags(MISSING_SIZE_X | MISSING_SIZE_Y);
}
+ //----------------------------------------------------------------------------
+ Canvas::~Canvas()
+ {
+
+ }
+
//----------------------------------------------------------------------------
void Canvas::onDestroy()
{
typedef osg::ref_ptr<CullCallback> CullCallbackPtr;
Canvas(SGPropertyNode* node);
+ virtual ~Canvas();
virtual void onDestroy();
void setSystemAdapter(const SystemAdapterPtr& system_adapter);
//----------------------------------------------------------------------------
void PropertyBasedMgr::shutdown()
{
+ _props->removeAllChildren();
_props->removeChangeListener(this);
- _elements.clear();
}
//----------------------------------------------------------------------------
_name_elements( name_elements ),
_element_factory( element_factory )
{
-
+ _props->setAttribute(SGPropertyNode::PRESERVE, true);
}
//----------------------------------------------------------------------------