diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-07-08 18:27:14 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-07-08 18:28:10 +0300 |
commit | 7884a7bbf9e2c9358609129ad8f4fca351d7f278 (patch) | |
tree | 6f5ba338e436e7bcb8d4a29caf1e84c52adf264e /mesh_snap_utilities_line | |
parent | 396c5b465776fefe32de53a57399d5adbb8db2c5 (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.
Diffstat (limited to 'mesh_snap_utilities_line')
-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 |