From 5c25a3a0eae5cc174f0fd5f4762b92b3adaae5af Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 27 Jun 2016 15:06:54 +0100 Subject: [PATCH] Added initializers --- include/osgAnimation/RigTransformSoftware | 2 +- src/osgAnimation/RigTransformHardware.cpp | 2 +- src/osgAnimation/RigTransformSoftware.cpp | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) 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())