diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-06-24 17:07:42 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-06-25 09:28:51 +0300 |
commit | c404b9375923e0e4260536329b3da7d566a2d259 (patch) | |
tree | 663d1702bc5ec64f5cb34f74da34d866b841db65 /indra/llappearance/lljointdata.h | |
parent | 781d9fa4814b4c82473bb5bfe5ab87094434a3f5 (diff) |
#4148 Fix collision bones
Diffstat (limited to 'indra/llappearance/lljointdata.h')
-rw-r--r-- | indra/llappearance/lljointdata.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/indra/llappearance/lljointdata.h b/indra/llappearance/lljointdata.h index 549f4af041..0b5eff2ae7 100644 --- a/indra/llappearance/lljointdata.h +++ b/indra/llappearance/lljointdata.h @@ -36,9 +36,30 @@ public: std::string mName; glm::mat4 mJointMatrix; glm::mat4 mRestMatrix; + glm::vec3 mScale; + LLVector3 mRotation; typedef std::vector<LLJointData> bones_t; bones_t mChildren; + + bool mIsJoint; // if not, collision_volume + enum SupportCategory + { + SUPPORT_BASE, + SUPPORT_EXTENDED + }; + SupportCategory mSupport; + void setSupport(const std::string& support) + { + if (support == "extended") + { + mSupport = SUPPORT_EXTENDED; + } + else + { + mSupport = SUPPORT_BASE; + } + } }; #endif //LL_LLJOINTDATA_H |