[Bf-extensions-cvs] [7884a7bb] master: Fix T89724: Drawing with make line tool in an empty scene results crash
Germano Cavalcante
noreply at git.blender.org
Thu Jul 8 17:28:29 CEST 2021
Commit: 7884a7bbf9e2c9358609129ad8f4fca351d7f278
Author: Germano Cavalcante
Date: Thu Jul 8 12:27:14 2021 -0300
Branches: master
https://developer.blender.org/rBA7884a7bbf9e2c9358609129ad8f4fca351d7f278
Fix T89724: Drawing with make line tool in an empty scene results crash
The operator incorrectly set `self._snap_buffer` to `None`.
A more secure check could be implemented, but it didn't really seem
necessary.
===================================================================
M mesh_snap_utilities_line/snap_context_l/__init__.py
===================================================================
diff --git a/mesh_snap_utilities_line/snap_context_l/__init__.py b/mesh_snap_utilities_line/snap_context_l/__init__.py
index 74c85499..5b4d14bb 100644
--- a/mesh_snap_utilities_line/snap_context_l/__init__.py
+++ b/mesh_snap_utilities_line/snap_context_l/__init__.py
@@ -381,7 +381,6 @@ class SnapContext():
self._dist_px = int(dist_px)
self._dist_px_sq = self._dist_px ** 2
self.threshold = 2 * self._dist_px + 1
- self._snap_buffer = None
def set_snap_mode(self, snap_to_vert, snap_to_edge, snap_to_face):
snap_mode = 0
More information about the Bf-extensions-cvs
mailing list