Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/gltf/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down