diff options
author | Dave Parks <davep@lindenlab.com> | 2021-09-20 18:58:09 +0000 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2021-09-20 18:58:09 +0000 |
commit | f79890669dcf8e44b5ec3ce1abbd1d1fdd34eb3b (patch) | |
tree | 749f11a7763fbe38a2ecfc51479db23faecaaf0d /indra/newview/llvoavatar.h | |
parent | c09532ac13a3ca2f1ca0854cf00594a26ddcb593 (diff) |
SL-16006 and SL-16009 Rigged mesh rendering optimization pass
Diffstat (limited to 'indra/newview/llvoavatar.h')
-rw-r--r-- | indra/newview/llvoavatar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.h b/indra/newview/llvoavatar.h index 74ef589ca4..39adaab8ca 100644 --- a/indra/newview/llvoavatar.h +++ b/indra/newview/llvoavatar.h @@ -209,6 +209,11 @@ public: virtual LLJoint* getJoint(const std::string &name); LLJoint* getJoint(S32 num); + //if you KNOW joint_num is a valid animated joint index, use getSkeletonJoint for efficiency + inline LLJoint* getSkeletonJoint(S32 joint_num) { return mSkeleton[joint_num]; } + inline size_t getSkeletonJointCount() const { return mSkeleton.size(); } + + void addAttachmentOverridesForObject(LLViewerObject *vo, std::set<LLUUID>* meshes_seen = NULL, bool recursive = true); void removeAttachmentOverridesForObject(const LLUUID& mesh_id); void removeAttachmentOverridesForObject(LLViewerObject *vo); |