diff options
author | Germano <germano.costa@ig.com.br> | 2017-10-02 19:11:42 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2017-10-02 19:11:42 +0300 |
commit | 23b0c956e34df618d27e9582a287dde1c07d614f (patch) | |
tree | 2e3b3bfe3a87c19eb8ea52744c390676e7307340 /mesh_snap_utilities_line.py | |
parent | 7cf00a0fb93a838687033e2d7ac5a15d2c94d5f3 (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.
Diffstat (limited to 'mesh_snap_utilities_line.py')
-rw-r--r-- | mesh_snap_utilities_line.py | 1 |
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'} |