|
@@ -406,7 +406,14 @@ export class InstancedMesh extends AbstractMesh {
|
|
var result = this._sourceMesh.createInstance(name);
|
|
var result = this._sourceMesh.createInstance(name);
|
|
|
|
|
|
// Deep copy
|
|
// Deep copy
|
|
- DeepCopier.DeepCopy(this, result, ["name", "subMeshes", "uniqueId", "parent"], []);
|
|
|
|
|
|
+ DeepCopier.DeepCopy(this, result, [
|
|
|
|
+ "name", "subMeshes", "uniqueId", "parent", "lightSources",
|
|
|
|
+ "receiveShadows", "material", "visibility", "skeleton",
|
|
|
|
+ "sourceMesh", "isAnInstance", "facetNb", "isFacetDataEnabled",
|
|
|
|
+ "isBlocked", "useBones", "hasInstances", "collider", "edgesRenderer",
|
|
|
|
+ "forward", "up", "right", "absolutePosition", "absoluteScaling", "absoluteRotationQuaternion",
|
|
|
|
+ "isWorldMatrixFrozen", "nonUniformScaling", "behaviors", "worldMatrixFromCache"
|
|
|
|
+ ], []);
|
|
|
|
|
|
// Bounding info
|
|
// Bounding info
|
|
this.refreshBoundingInfo();
|
|
this.refreshBoundingInfo();
|