Просмотр исходного кода

Switched setParent of trasnfromNode to use stricter null check.

Michael Schlotfeldt 7 лет назад
Родитель
Сommit
7e44fb474c
1 измененных файлов с 1 добавлено и 1 удалено
  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];