Browse Source

More style changes

Nicholas Barlow 4 năm trước cách đây
mục cha
commit
309b96e8be
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Materials/material.ts

+ 1 - 1
src/Materials/material.ts

@@ -664,7 +664,7 @@ export class Material implements IAnimatable {
         this._scene = scene || EngineStore.LastCreatedScene;
 
         this.id = name || Tools.RandomId();
-        while (this._scene.getMaterialByID(this.id) !== null) {
+        while (this._scene.getMaterialByID(this.id)) {
             this.id = name + " " + idSubscript++;
         }