Skip to content

Commit

Permalink
Fix cloning particle components that use meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Sep 8, 2015
1 parent 49436c1 commit d5d013f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ pc.extend(pc, function() {
},

_onMeshChanged: function (mesh) {
if (mesh) {
if (mesh && ! (mesh instanceof pc.Mesh)) {
if (mesh.meshInstances[0]) {
mesh = mesh.meshInstances[0].mesh;
} else {
Expand Down

0 comments on commit d5d013f

Please sign in to comment.