diff --git a/src/osgAnimation/RigTransformSoftware.cpp b/src/osgAnimation/RigTransformSoftware.cpp index 450c013d7..7dba6e6bb 100644 --- a/src/osgAnimation/RigTransformSoftware.cpp +++ b/src/osgAnimation/RigTransformSoftware.cpp @@ -71,7 +71,7 @@ void RigTransformSoftware::operator()(RigGeometry& geom) } *positionDst = *positionSrc; } - if (positionDst && !positionDst->empty()) + if (!positionDst->empty()) { compute(geom.getMatrixFromSkeletonToGeometry(), geom.getInvMatrixFromSkeletonToGeometry(), @@ -96,7 +96,7 @@ void RigTransformSoftware::operator()(RigGeometry& geom) } *normalDst = *normalSrc; } - if (normalDst && !normalDst->empty()) + if (!normalDst->empty()) { computeNormal(geom.getMatrixFromSkeletonToGeometry(), geom.getInvMatrixFromSkeletonToGeometry(),