Fixed build problem
This commit is contained in:
parent
bad3a92fc3
commit
0114ac4734
@ -79,7 +79,7 @@ public:
|
|||||||
osg::ref_ptr<osgAnimation::Bone> bone = new osgAnimation::Bone( parent->getName()+"End" );
|
osg::ref_ptr<osgAnimation::Bone> bone = new osgAnimation::Bone( parent->getName()+"End" );
|
||||||
bone->setBindMatrixInBoneSpace( osg::Matrix::translate(offsetEndSite) );
|
bone->setBindMatrixInBoneSpace( osg::Matrix::translate(offsetEndSite) );
|
||||||
bone->setDataVariance( osg::Object::DYNAMIC );
|
bone->setDataVariance( osg::Object::DYNAMIC );
|
||||||
parent->addChild( bone );
|
parent->addChild( bone.get() );
|
||||||
|
|
||||||
if ( _drawingFlag )
|
if ( _drawingFlag )
|
||||||
parent->addChild( createRefGeometry(offsetEndSite, 0.5).get() );
|
parent->addChild( createRefGeometry(offsetEndSite, 0.5).get() );
|
||||||
@ -98,7 +98,7 @@ public:
|
|||||||
osgAnimation::AnimationUpdateCallback* cb =
|
osgAnimation::AnimationUpdateCallback* cb =
|
||||||
dynamic_cast<osgAnimation::AnimationUpdateCallback*>( bone->getUpdateCallback() );
|
dynamic_cast<osgAnimation::AnimationUpdateCallback*>( bone->getUpdateCallback() );
|
||||||
if ( cb ) cb->setName( bone->getName() );
|
if ( cb ) cb->setName( bone->getName() );
|
||||||
parent->addChild( bone );
|
parent->addChild( bone.get() );
|
||||||
_joints.push_back( JointNode(bone, 0) );
|
_joints.push_back( JointNode(bone, 0) );
|
||||||
|
|
||||||
int entry = fr[1].getNoNestedBrackets();
|
int entry = fr[1].getNoNestedBrackets();
|
||||||
|
Loading…
Reference in New Issue
Block a user