diff --git a/include/osgAnimation/RigGeometry b/include/osgAnimation/RigGeometry index 78c290d8e..d4fd5a90a 100644 --- a/include/osgAnimation/RigGeometry +++ b/include/osgAnimation/RigGeometry @@ -80,6 +80,7 @@ namespace osgAnimation // set implementation of rig method void setRigTransformImplementation(RigTransform*); RigTransform* getRigTransformImplementation(); + const RigTransform* getRigTransformImplementation() const { return _rigTransformImplementation.get(); } virtual void drawImplementation(osg::RenderInfo& renderInfo) const; void update(); diff --git a/src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp b/src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp index d162db8a9..4d473366a 100644 --- a/src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp +++ b/src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp @@ -72,4 +72,5 @@ REGISTER_OBJECT_WRAPPER( osgAnimation_RigGeometry, { ADD_USER_SERIALIZER( InfluenceMap ); // _vertexInfluenceMap ADD_OBJECT_SERIALIZER( SourceGeometry, osg::Geometry, NULL ); // _geometry + ADD_OBJECT_SERIALIZER( RigTransformImplementation, osgAnimation::RigTransform, NULL ); // _geometry } diff --git a/src/osgWrappers/serializers/osgAnimation/RigTransform.cpp b/src/osgWrappers/serializers/osgAnimation/RigTransform.cpp new file mode 100644 index 000000000..82ba7b05d --- /dev/null +++ b/src/osgWrappers/serializers/osgAnimation/RigTransform.cpp @@ -0,0 +1,25 @@ + +#include +#include +#include +#include +#include + +namespace wrap_osgAnimationRigTransform{ + REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransform, + NULL, + osgAnimation::RigTransform, + "osg::Object osgAnimation::RigTransform" ){} +} +namespace wrap_osgAnimationRigTransformSoftWare{ + REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransformSoftware, + new osgAnimation::RigTransformSoftware, + osgAnimation::RigTransformSoftware, + "osg::Object osgAnimation::RigTransform osgAnimation::RigTransformSoftware" ){} +} +namespace wrap_osgAnimationRigTransformHardWare{ + REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransformHardware, + new osgAnimation::RigTransformHardware, + osgAnimation::RigTransformHardware, + "osg::Object osgAnimation::RigTransform osgAnimation::RigTransformHardware" ){} +}