Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Rachinskiy <mikhail.rachinskiy@gmail.com>2019-10-16 11:15:42 +0300
committerMikhail Rachinskiy <mikhail.rachinskiy@gmail.com>2019-10-16 11:16:57 +0300
commit2933364ad9c69c2fe9f4d66333ef809af0ebf14f (patch)
treee6f78703ba5f147a4c1c553eaa770f7d1fde6ae1
parent88333d082f38439a6dfdfcb6758b88e5cac3e43c (diff)
3D-Print: fix error using evaluated mesh as obj data
-rw-r--r--object_print3d_utils/mesh_helpers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/object_print3d_utils/mesh_helpers.py b/object_print3d_utils/mesh_helpers.py
index bb0230e5..37170e53 100644
--- a/object_print3d_utils/mesh_helpers.py
+++ b/object_print3d_utils/mesh_helpers.py
@@ -228,7 +228,7 @@ def object_merge(context, objects):
# convert each to a mesh
obj_eval = obj.evaluated_get(depsgraph)
- mesh_new = obj_eval.to_mesh()
+ mesh_new = obj_eval.to_mesh().copy()
# remove non-active uvs/vcols
cd_remove_all_but_active(mesh_new.vertex_colors)
@@ -245,6 +245,7 @@ def object_merge(context, objects):
bpy.ops.object.join(override)
+ bpy.data.meshes.remove(mesh_new)
obj_eval.to_mesh_clear()
layer.update()