Don't try to create motions with null UUID

master
Ansariel 2021-02-19 09:50:16 +01:00
parent f55bab800a
commit ec97be1f66
1 changed files with 7 additions and 0 deletions

View File

@ -347,6 +347,13 @@ void LLMotionController::removeMotionInstance(LLMotion* motionp)
//-----------------------------------------------------------------------------
LLMotion* LLMotionController::createMotion( const LLUUID &id )
{
// <FS:Ansariel> Don't try to create invalid motions
if (id.isNull())
{
return NULL;
}
// </FS:Ansariel>
// do we have an instance of this motion for this character?
LLMotion *motion = findMotion(id);