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:
authorGermano <germano.costa@ig.com.br>2017-10-02 19:11:42 +0300
committerGermano <germano.costa@ig.com.br>2017-10-02 19:11:42 +0300
commit23b0c956e34df618d27e9582a287dde1c07d614f (patch)
tree2e3b3bfe3a87c19eb8ea52744c390676e7307340
parent7cf00a0fb93a838687033e2d7ac5a15d2c94d5f3 (diff)
mesh_snap_utilities_line: dealloc bmesh
The `SnapUtilitiesLine` class with all attributes are still referenced after the Operator is finished. Therefore it is better to deallocate objects that can cause possible errors when releasing.
-rw-r--r--mesh_snap_utilities_line.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh_snap_utilities_line.py b/mesh_snap_utilities_line.py
index 0d1c9268..dcdafdee 100644
--- a/mesh_snap_utilities_line.py
+++ b/mesh_snap_utilities_line.py
@@ -807,6 +807,7 @@ class SnapUtilitiesLine(Operator):
context.area.header_text_set()
context.user_preferences.view.use_rotate_around_active = self.use_rotate_around_active
self.sctx.free()
+ self.bm = None
if not self.is_editmode:
bpy.ops.object.editmode_toggle()
return {'FINISHED'}