summaryrefslogtreecommitdiff
path: root/indra/llcharacter
diff options
context:
space:
mode:
authorHoward Stearns <howard.stearns@gmail.com>2022-02-28 15:54:23 -0800
committerHoward Stearns <howard.stearns@gmail.com>2022-02-28 15:54:23 -0800
commit130d0c0704c97a427bc28f9164f71ce67535e894 (patch)
treeb27e61d8c2e3aeb91ecd1b0b8177ff2a7bdb665e /indra/llcharacter
parent932b7de5309bc8599655ebb77666c41f5a81cfa9 (diff)
parent6ca09a94554ec01f5c94ec60fffd01d7e33f3546 (diff)
Merge branch 'master' of bitbucket.org:lindenlab/viewer into SL-9749
Diffstat (limited to 'indra/llcharacter')
-rw-r--r--indra/llcharacter/llkeyframemotion.h9
-rw-r--r--indra/llcharacter/llmotion.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/indra/llcharacter/llkeyframemotion.h b/indra/llcharacter/llkeyframemotion.h
index d640556090..9a927ede9a 100644
--- a/indra/llcharacter/llkeyframemotion.h
+++ b/indra/llcharacter/llkeyframemotion.h
@@ -115,6 +115,15 @@ public:
else return LLJoint::LOW_PRIORITY;
}
+ virtual S32 getNumJointMotions()
+ {
+ if (mJointMotionList)
+ {
+ return mJointMotionList->getNumJointMotions();
+ }
+ return 0;
+ }
+
virtual LLMotionBlendType getBlendType() { return NORMAL_BLEND; }
// called to determine when a motion should be activated/deactivated based on avatar pixel coverage
diff --git a/indra/llcharacter/llmotion.h b/indra/llcharacter/llmotion.h
index 2dfc3afc7f..aaa9a146d7 100644
--- a/indra/llcharacter/llmotion.h
+++ b/indra/llcharacter/llmotion.h
@@ -129,6 +129,9 @@ public:
// motions must report their priority level
virtual LLJoint::JointPriority getPriority() = 0;
+ // amount of affected joints
+ virtual S32 getNumJointMotions() { return 0; };
+
// motions must report their blend type
virtual LLMotionBlendType getBlendType() = 0;