Browse Source

Switched setParent of trasnfromNode to use stricter null check.

Michael Schlotfeldt 7 years ago
parent
commit
7e44fb474c
1 changed files with 1 additions and 1 deletions
  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];