소스 검색

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.