Pārlūkot izejas kodu

Switched setParent of trasnfromNode to use stricter null check.

Michael Schlotfeldt 7 gadi atpakaļ
vecāks
revīzija
7e44fb474c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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];