fix a bug introduced when readding transformsoftwareMethod

This commit is contained in:
Julien Valentin 2017-08-28 05:22:14 +02:00
parent f46fdb4d4e
commit 66aedbb0b3

View File

@ -144,7 +144,7 @@ namespace osgAnimation
inline bool isDirty()const { return _dirty; } inline bool isDirty()const { return _dirty; }
/** for retrocompatibility */ /** for retrocompatibility */
virtual void transformSoftwareMethod(){ if (!_rigTransformImplementation.valid()_rigTransformImplementation = new MorphTransformSoftware();_rigTransformImplementation(*this);} virtual void transformSoftwareMethod(){ if (!_rigTransformImplementation.valid())_rigTransformImplementation = new MorphTransformSoftware();(*_rigTransformImplementation.get())(*this);}
protected: protected:
osg::ref_ptr<MorphTransform> _rigTransformImplementation; osg::ref_ptr<MorphTransform> _rigTransformImplementation;