瀏覽代碼

fix node rotation

Daniel Salvadori 7 年之前
父節點
當前提交
e8ac3daa21
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)