diff --git a/indra/llcharacter/llmotioncontroller.h b/indra/llcharacter/llmotioncontroller.h index 72de3316947f1ce13fcca68848e087bf30e95e2d..22357a2c6bbf1168c3b9b9c8a76bffc04bc438c1 100644 --- a/indra/llcharacter/llmotioncontroller.h +++ b/indra/llcharacter/llmotioncontroller.h @@ -150,10 +150,13 @@ class LLMotionController BOOL isPaused() const { return mPaused; } void setTimeStep(F32 step); + F32 getTimeStep() const { return mTimeStep; } void setTimeFactor(F32 time_factor); F32 getTimeFactor() const { return mTimeFactor; } + F32 getAnimTime() const { return mAnimTime; } + motion_list_t& getActiveMotions() { return mActiveMotions; } void incMotionCounts(S32& num_motions, S32& num_loading_motions, S32& num_loaded_motions, S32& num_active_motions, S32& num_deprecated_motions); diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp index 8dfc2e81dce4f0f38bc60a3c1b68501f4ad19349..9ed3020b66ddaf6b9392b7eef1719ce26ad09f08 100644 --- a/indra/newview/llcontrolavatar.cpp +++ b/indra/newview/llcontrolavatar.cpp @@ -248,6 +248,10 @@ void LLControlAvatar::updateDebugText() } #endif + addDebugText(llformat("anim time %.1f (step %f factor %f)", + mMotionController.getAnimTime(), + mMotionController.getTimeStep(), + mMotionController.getTimeFactor())); } LLVOAvatar::updateDebugText();