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:
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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue