|
|
|
@ -49,7 +49,6 @@ RigGeometry::RigGeometry(const RigGeometry ©, const osg::CopyOp ©op)
|
|
|
|
|
: Drawable(copy, copyop)
|
|
|
|
|
, mSkeleton(NULL)
|
|
|
|
|
, mInfluenceMap(copy.mInfluenceMap)
|
|
|
|
|
, mRigTransforms(copy.mRigTransforms)
|
|
|
|
|
, mLastFrameNumber(0)
|
|
|
|
|
, mBoundsFirstFrame(true)
|
|
|
|
|
{
|
|
|
|
@ -215,9 +214,6 @@ void RigGeometry::cull(osg::NodeVisitor* nv)
|
|
|
|
|
if (mGeomToSkelMatrix)
|
|
|
|
|
resultMat *= (*mGeomToSkelMatrix);
|
|
|
|
|
|
|
|
|
|
if (!mRigTransforms.isIdentity())
|
|
|
|
|
resultMat *= mRigTransforms;
|
|
|
|
|
|
|
|
|
|
for (auto &vertex : pair.second)
|
|
|
|
|
{
|
|
|
|
|
(*positionDst)[vertex] = resultMat.preMult((*positionSrc)[vertex]);
|
|
|
|
@ -313,11 +309,6 @@ void RigGeometry::setInfluenceMap(osg::ref_ptr<InfluenceMap> influenceMap)
|
|
|
|
|
mInfluenceMap = influenceMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RigGeometry::setRigTransforms(osg::Matrixf& transform)
|
|
|
|
|
{
|
|
|
|
|
mRigTransforms = transform;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RigGeometry::accept(osg::NodeVisitor &nv)
|
|
|
|
|
{
|
|
|
|
|
if (!nv.validNodeMask(*this))
|
|
|
|
|