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:
Diffstat (limited to 'io_export_pc2.py')
-rw-r--r--io_export_pc2.py5
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()