Explorar el Código

fix node rotation

Daniel Salvadori hace 7 años
padre
commit
e8ac3daa21
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)