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