summaryrefslogtreecommitdiff
path: root/indra/newview/llmodelpreview.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-06-13 18:33:49 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-06-13 21:49:02 +0300
commit54660c8931593ceb465605acf872d5227e1d2d63 (patch)
tree6460f98d9e12a5640d93516a39ccc78aabdcf76b /indra/newview/llmodelpreview.cpp
parent8322a9a61e951275278fbf80b0a46880f5318107 (diff)
#4147 Joint Overrides #3
Remande skeleton translation from default skeleton to overriden skeleton
Diffstat (limited to 'indra/newview/llmodelpreview.cpp')
-rw-r--r--indra/newview/llmodelpreview.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index d6b438a6e2..fc0a3ec58f 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -40,6 +40,7 @@
#include "lldrawable.h"
#include "llface.h"
#include "lliconctrl.h"
+#include "lljointdata.h"
#include "llmatrix4a.h"
#include "llmeshrepository.h"
#include "llmeshoptimizer.h"
@@ -811,9 +812,8 @@ void LLModelPreview::loadModel(std::string filename, S32 lod, bool force_disable
else
{
LLVOAvatar* av = getPreviewAvatar();
- LLAvatarAppearance::joint_rest_map_t rest_pose;
- LLAvatarAppearance::joint_parent_map_t rest_parent_map;
- av->getJointRestMatrices(rest_pose, rest_parent_map);
+ std::vector<LLJointData> viewer_skeleton;
+ av->getJointMatricesAndHierarhy(viewer_skeleton);
mModelLoader = new LLGLTFLoader(
filename,
lod,
@@ -827,8 +827,7 @@ void LLModelPreview::loadModel(std::string filename, S32 lod, bool force_disable
joint_alias_map,
LLSkinningUtil::getMaxJointCount(),
gSavedSettings.getU32("ImporterModelLimit"),
- rest_pose,
- rest_parent_map);
+ viewer_skeleton);
}
if (force_disable_slm)