diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-07-08 18:27:14 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-07-26 09:45:31 +0300 |
commit | 1868f2511cf388a0fbf29736640102f96bcb2acd (patch) | |
tree | 346e073a131f95d1f43d4eb5fad568db38def409 | |
parent | ae7be84e2d6cc55102682793baffb415f03ab911 (diff) |
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.
-rw-r--r-- | mesh_snap_utilities_line/snap_context_l/__init__.py | 1 |
1 files changed, 0 insertions, 1 deletions
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 |