Include animation fields in areModelInstancesEqual

This commit is contained in:
2026-03-31 23:54:25 +02:00
parent 5c1b68451f
commit 764f8bed24

View File

@@ -106,7 +106,9 @@ export function areModelInstancesEqual(left: ModelInstance, right: ModelInstance
left.name === right.name &&
areVec3Equal(left.position, right.position) &&
areVec3Equal(left.rotationDegrees, right.rotationDegrees) &&
areVec3Equal(left.scale, right.scale)
areVec3Equal(left.scale, right.scale) &&
left.animationClipName === right.animationClipName &&
left.animationAutoplay === right.animationAutoplay
);
}