readd virtual void transformSoftwareMethod() for retrocompatibity

This commit is contained in:
Julien Valentin 2017-08-28 04:42:51 +02:00
parent ca224c81dd
commit ed04e2735e

View File

@ -89,7 +89,7 @@ namespace osgAnimation
/** Set source of vertices for this morph geometry */
inline void setVertexSource(osg::Vec3Array *v){ _positionSource=v;}
/** Get source of vertices for this morph geometry */
inline osg::Vec3Array * getVertexSource()const{return _positionSource;}
@ -143,6 +143,8 @@ namespace osgAnimation
inline void dirty(bool b=true) { _dirty = b; }
inline bool isDirty()const { return _dirty; }
/** for retrocompatibility */
virtual void transformSoftwareMethod(){ if (!_rigTransformImplementation.valid()_rigTransformImplementation = new MorphTransformSoftware();_rigTransformImplementation(*this);}
protected:
osg::ref_ptr<MorphTransform> _rigTransformImplementation;