diff --git a/include/osgAnimation/RigTransformSoftware b/include/osgAnimation/RigTransformSoftware index 8fdb3ac6c..300e513fd 100644 --- a/include/osgAnimation/RigTransformSoftware +++ b/include/osgAnimation/RigTransformSoftware @@ -31,7 +31,7 @@ namespace osgAnimation { public: RigTransformSoftware(); - RigTransformSoftware(const RigTransformSoftware&,const osg::CopyOp&){}; + RigTransformSoftware(const RigTransformSoftware& rts,const osg::CopyOp& copyop); META_Object(osgAnimation,RigTransformSoftware) diff --git a/src/osgAnimation/RigTransformHardware.cpp b/src/osgAnimation/RigTransformHardware.cpp index 86f08ed35..82ae6b3e6 100644 --- a/src/osgAnimation/RigTransformHardware.cpp +++ b/src/osgAnimation/RigTransformHardware.cpp @@ -37,7 +37,7 @@ RigTransformHardware::RigTransformHardware(const RigTransformHardware& rth, cons _boneWeightAttribArrays(rth._boneWeightAttribArrays), _uniformMatrixPalette(rth._uniformMatrixPalette), _shader(rth._shader), - _needInit(false) + _needInit(rth._needInit) { } diff --git a/src/osgAnimation/RigTransformSoftware.cpp b/src/osgAnimation/RigTransformSoftware.cpp index 7dba6e6bb..b9537cf8d 100644 --- a/src/osgAnimation/RigTransformSoftware.cpp +++ b/src/osgAnimation/RigTransformSoftware.cpp @@ -25,6 +25,14 @@ RigTransformSoftware::RigTransformSoftware() _needInit = true; } +RigTransformSoftware::RigTransformSoftware(const RigTransformSoftware& rts,const osg::CopyOp& copyop): + RigTransform(rts, copyop), + _needInit(rts._needInit), + _invalidInfluence(rts._invalidInfluence) +{ + +} + bool RigTransformSoftware::init(RigGeometry& geom) { if (!geom.getSkeleton())