@babylonjs/core 7.17.0 → 7.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Meshes/mesh.js CHANGED
@@ -387,7 +387,7 @@ export class Mesh extends AbstractMesh {
387
387
  this.parent = source.parent;
388
388
  // Pivot
389
389
  this.setPivotMatrix(source.getPivotMatrix(), this._postMultiplyPivotMatrix);
390
- this.id = name + "." + source.id;
390
+ this.id = this.name + "." + source.id;
391
391
  // Material
392
392
  this.material = source.material;
393
393
  if (!doNotCloneChildren) {
@@ -396,7 +396,7 @@ export class Mesh extends AbstractMesh {
396
396
  for (let index = 0; index < directDescendants.length; index++) {
397
397
  const child = directDescendants[index];
398
398
  if (child.clone) {
399
- child.clone(name + "." + child.name, this);
399
+ child.clone(this.name + "." + child.name, this);
400
400
  }
401
401
  }
402
402
  }