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:
Robert Osfield
2003-01-22 12:06:22 +00:00
parent 1c56ee52a2
commit 329a8a1656
2 changed files with 44 additions and 16 deletions

View File

@@ -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: