From 0df500799a27029a45e141073c51c14d82b9f59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20H=C3=A4rtl?= Date: Mon, 30 Mar 2026 12:42:34 +0200 Subject: [PATCH] Return matrix if available --- source/gltf/node.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/gltf/node.js b/source/gltf/node.js index 792d717a..026c749f 100644 --- a/source/gltf/node.js +++ b/source/gltf/node.js @@ -104,6 +104,10 @@ class gltfNode extends GltfObject { } getLocalTransform() { + // Matrices are never animated, so if a matrix is present we can just use it directly + if (this.matrix !== undefined) { + return this.matrix; + } return mat4.fromRotationTranslationScale( mat4.create(), this.rotation,