Bläddra i källkod

More style changes

Nicholas Barlow 4 år sedan
förälder
incheckning
309b96e8be
1 ändrade filer med 1 tillägg och 1 borttagningar
  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++;
         }