Browse Source

Switched setParent of trasnfromNode to use stricter null check.

Michael Schlotfeldt 7 năm trước cách đây
mục cha
commit
7e44fb474c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Mesh/babylon.transformNode.ts

+ 1 - 1
src/Mesh/babylon.transformNode.ts

@@ -463,7 +463,7 @@ module BABYLON {
          */
         public setParent(node: Nullable<Node>): TransformNode {
 
-            if (node == null) {
+            if (node === null) {
                 var rotation = Tmp.Quaternion[0];
                 var position = Tmp.Vector3[0];
                 var scale = Tmp.Vector3[1];