Add LLMotionController* LLMotion::mMotionController
This is needed for synchronization: motions will have to start (with a specific start time offset) from a point in the code where only the motion object is available. I added/used LLMotionController& in a previous commit, this was now changed into a pointer. There is (obviously) not much reason for that, but also no disadvantage: the diff relative to LLs code doesn't get larger since the references where already added, too. Conflicts: indra/llcharacter/llkeyframemotion.cpp indra/llcharacter/llkeyframemotion.h
This commit is contained in:
@@ -49,10 +49,11 @@
|
||||
// LLMotion()
|
||||
// Class Constructor
|
||||
//-----------------------------------------------------------------------------
|
||||
LLMotion::LLMotion( const LLUUID &id ) :
|
||||
LLMotion::LLMotion(LLUUID const& id, LLMotionController* controller) :
|
||||
mStopped(TRUE),
|
||||
mActive(FALSE),
|
||||
mID(id),
|
||||
mController(controller),
|
||||
mActivationTimestamp(0.f),
|
||||
mStopTimestamp(0.f),
|
||||
mSendStopTimestamp(F32_MAX),
|
||||
@@ -181,13 +182,13 @@ BOOL LLMotion::canDeprecate()
|
||||
|
||||
BOOL AIMaskedMotion::onActivate()
|
||||
{
|
||||
mController.activated(mMaskBit);
|
||||
mController->activated(mMaskBit);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void AIMaskedMotion::onDeactivate()
|
||||
{
|
||||
mController.deactivated(mMaskBit);
|
||||
mController->deactivated(mMaskBit);
|
||||
}
|
||||
|
||||
// End
|
||||
|
||||
Reference in New Issue
Block a user