diff options
author | Mikhail Rachinskiy <mikhail.rachinskiy@gmail.com> | 2019-10-13 15:08:57 +0300 |
---|---|---|
committer | Mikhail Rachinskiy <mikhail.rachinskiy@gmail.com> | 2019-10-13 15:08:57 +0300 |
commit | 16b4498b6899ec23923235288218fea0dcb2ea15 (patch) | |
tree | 3a47ce2d22b13e4afeb959a3e862366f39922ac2 /object_print3d_utils | |
parent | 694bf220bd7e3b9bbfcf7dd677a590ff4c1f765f (diff) |
3D-Print: fix error using evaluated mesh as obj data
Also clean up remaining mesh data after object join.
Diffstat (limited to 'object_print3d_utils')
-rw-r--r-- | object_print3d_utils/mesh_helpers.py | 3 |
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() |