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.
This commit is contained in:
Germano Cavalcante 2021-07-08 12:27:14 -03:00 committed by Jeroen Bakker
parent ae7be84e2d
commit 1868f2511c
Notes: blender-bot 2023-02-14 18:34:43 +01:00
Referenced by issue blender/blender#88449: Blender LTS: Maintenance Task 2.93
Referenced by issue blender/blender#88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #89724, Drawing with make line tool in an empty scene results crash
1 changed files with 0 additions and 1 deletions

View File

@ -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