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:
authorBastien Montagne <montagne29@wanadoo.fr>2017-05-27 15:56:57 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-05-27 15:56:57 +0300
commit51ee36db621093d010393c256e1ebf9aed47637d (patch)
treeea8680cdf97e61d2af3755719e6c52f988ef36b2 /io_export_pc2.py
parent0ed2792d30d726cca252fac298741ee6247f3f03 (diff)
Fix T51627: .mdd & .pc2 exporters never releasing temp mesh data.
Based on patch by Kai Kostack (@kaikostack), thanks!
Diffstat (limited to 'io_export_pc2.py')
-rw-r--r--io_export_pc2.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/io_export_pc2.py b/io_export_pc2.py
index fdc72324..752df5c4 100644
--- a/io_export_pc2.py
+++ b/io_export_pc2.py
@@ -19,7 +19,7 @@
bl_info = {
"name": "Export Pointcache Format(.pc2)",
"author": "Florian Meyer (tstscr)",
- "version": (1, 1),
+ "version": (1, 1, 1),
"blender": (2, 71, 0),
"location": "File > Export > Pointcache (.pc2)",
"description": "Export mesh Pointcache data (.pc2)",
@@ -79,6 +79,7 @@ def do_export(context, props, filepath):
me = ob.to_mesh(sc, apply_modifiers, 'PREVIEW')
if len(me.vertices) != vertCount:
+ bpy.data.meshes.remove(me, do_unlink=True)
file.close()
try:
remove(filepath)
@@ -100,6 +101,9 @@ def do_export(context, props, filepath):
float(v.co[2]))
file.write(thisVertex)
+ bpy.data.meshes.remove(me, do_unlink=True)
+
+
file.flush()
file.close()
return True