瀏覽代碼

improved Node.SetMatrix()

Daniel Salvadori 7 年之前
父節點
當前提交
48a6bb9576
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/node.go

+ 1 - 0
core/node.go

@@ -632,6 +632,7 @@ func (n *Node) SetMatrix(m *math32.Matrix4) {
 
 	n.matrix = *m
 	n.matrix.Decompose(&n.position, &n.quaternion, &n.scale)
+	n.rotNeedsUpdate = true
 }
 
 // Matrix returns a copy of the local transformation matrix.