[Bf-extensions-cvs] [23b0c956] master: mesh_snap_utilities_line: dealloc bmesh
Germano
noreply at git.blender.org
Mon Oct 2 18:11:50 CEST 2017
Commit: 23b0c956e34df618d27e9582a287dde1c07d614f
Author: Germano
Date: Mon Oct 2 13:11:42 2017 -0300
Branches: master
https://developer.blender.org/rBA23b0c956e34df618d27e9582a287dde1c07d614f
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.
===================================================================
M mesh_snap_utilities_line.py
===================================================================
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'}
More information about the Bf-extensions-cvs
mailing list