Visitar URL original
fix model cloning bug · WebGL-HTML5-Repo/engine@7ac664b · GitHub
Skip to content

Commit 7ac664b

Browse files
author
Maksims Mihejevs
committed
fix model cloning bug
1 parent 7e472bc commit 7ac664b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/framework/components/model/system.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ pc.extend(pc, function () {
119119
if (!data.materialAsset)
120120
component.material = material;
121121

122-
var meshInstances = entity.model.meshInstances;
123-
var meshInstancesClone = component.meshInstances;
122+
var meshInstances = entity.model.model.meshInstances;
123+
var meshInstancesClone = component.model.meshInstances;
124124
for (var i = 0; i < meshInstances.length; i++) {
125125
meshInstancesClone[i].mask = meshInstances[i].mask;
126126
}

0 commit comments

Comments
 (0)