Skip to content

Commit d5d013f

Browse files
committed
Fix cloning particle components that use meshes
1 parent 49436c1 commit d5d013f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/framework/components/particlesystem/particlesystem_component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ pc.extend(pc, function() {
299299
},
300300

301301
_onMeshChanged: function (mesh) {
302-
if (mesh) {
302+
if (mesh && ! (mesh instanceof pc.Mesh)) {
303303
if (mesh.meshInstances[0]) {
304304
mesh = mesh.meshInstances[0].mesh;
305305
} else {

0 commit comments

Comments
 (0)