diff options
Diffstat (limited to 'io_export_pc2.py')
-rw-r--r-- | io_export_pc2.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/io_export_pc2.py b/io_export_pc2.py index 5e69d14f..a5ad1b0c 100644 --- a/io_export_pc2.py +++ b/io_export_pc2.py @@ -112,7 +112,10 @@ def do_export(context, props, filepath): float(v.co[2])) file.write(thisVertex) - bpy.data.meshes.remove(me, do_unlink=True) + if apply_modifiers: + ob.evaluated_get(depsgraph).to_mesh_clear() + else: + me = ob.to_mesh_clear() file.flush() file.close() |