From d5d013f9d8f53db4fef26867132d97f1915df1f5 Mon Sep 17 00:00:00 2001 From: Vaios Kalpias-Ilias Date: Tue, 8 Sep 2015 12:16:42 +0300 Subject: [PATCH] Fix cloning particle components that use meshes --- .../components/particlesystem/particlesystem_component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/components/particlesystem/particlesystem_component.js b/src/framework/components/particlesystem/particlesystem_component.js index 4fe3add46cd..7923171d858 100644 --- a/src/framework/components/particlesystem/particlesystem_component.js +++ b/src/framework/components/particlesystem/particlesystem_component.js @@ -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 {