'this' can't be null so gcc rejects it

master
Beq 2025-10-01 17:42:24 +01:00
parent 77bdbf965f
commit 21ec3ed509
1 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ void FSPosingMotion::getJointStateAtTime(std::string jointPoseName, F32 timeToLo
bool* hasPosition, LLVector3* jointPosition,
bool* hasScale, LLVector3* jointScale)
{
if (this == NULL || mJointMotionList == nullptr)
if ( mJointMotionList == nullptr)
return;
for (U32 i = 0; i < mJointMotionList->getNumJointMotions(); i++)
@ -348,7 +348,7 @@ bool FSPosingMotion::otherMotionAnimatesJoints(LLKeyframeMotion* motionToQuery,
bool FSPosingMotion::motionAnimatesJoints(std::string recapturedJointNames)
{
if (this == NULL || mJointMotionList == nullptr)
if (mJointMotionList == nullptr)
return false;
for (U32 i = 0; i < mJointMotionList->getNumJointMotions(); i++)