[Bf-extensions-cvs] [1868f251] blender-v2.93-release: Fix T89724: Drawing with make line tool in an empty scene results crash
Germano Cavalcante
noreply at git.blender.org
Mon Jul 26 08:52:19 CEST 2021
Commit: 1868f2511cf388a0fbf29736640102f96bcb2acd
Author: Germano Cavalcante
Date: Thu Jul 8 12:27:14 2021 -0300
Branches: blender-v2.93-release
https://developer.blender.org/rBA1868f2511cf388a0fbf29736640102f96bcb2acd
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