Fixed an Optimizer crash where if the top most node of a model was
a static transform it would crash when this root was deleted. Have fixed by recognising this node as one not to remove and set it to identity instead.
This commit is contained in:
@@ -82,7 +82,7 @@ class OSGUTIL_EXPORT Optimizer
|
||||
virtual void apply(osg::Billboard& geode);
|
||||
virtual void apply(osg::Transform& transform);
|
||||
|
||||
bool removeTransforms();
|
||||
bool removeTransforms(osg::Node* nodeWeCannotRemove);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user