Parcourir la source

fix node rotation

Daniel Salvadori il y a 7 ans
Parent
commit
e8ac3daa21
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      core/node.go

+ 1 - 1
core/node.go

@@ -698,7 +698,7 @@ func (n *Node) MatrixWorld() math32.Matrix4 {
 // of this node based on its position, quaternion, and scale.
 func (n *Node) UpdateMatrix() bool {
 
-	if !n.matNeedsUpdate {
+	if !n.matNeedsUpdate && !n.rotNeedsUpdate {
 		return false
 	}
 	n.matrix.Compose(&n.position, &n.quaternion, &n.scale)