viewer#1131 Sync 'transform' arrows with UI

master
Andrey Kleshchev 2024-07-04 07:19:15 +03:00 committed by Andrey Kleshchev
parent 08b933a0c6
commit b099dbef27
2 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,6 @@ void LLFloaterGLTFAssetEditor::onClose(bool app_quitting)
gIdleCallbacks.deleteFunction(idle, this);
mAsset = nullptr;
mObject = nullptr;
}
void LLFloaterGLTFAssetEditor::clearRoot()
@ -458,6 +457,7 @@ void LLFloaterGLTFAssetEditor::loadNodeTransforms(S32 node_id)
}
LL::GLTF::Node& node = mAsset->mNodes[node_id];
node.makeTRSValid();
mCtrlPosX->set(node.mTranslation[0]);
mCtrlPosY->set(node.mTranslation[1]);

View File

@ -4418,6 +4418,7 @@ void LLViewerObject::moveGLTFNode(S32 node_index, const LLVector3& offset)
matMul(trans, mat, mat);
node.mMatrix = glm::make_mat4(mat.getF32ptr());
node.mTRSValid = false;
// TODO -- only update transforms for this node and its children (or use a dirty flag)
mGLTFAsset->updateTransforms();