Skip to content

Commit

Permalink
fix: set width lower limit to zero on WN bevel operator
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-hm committed Jul 1, 2022
1 parent 8fc1868 commit 5a5dd78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bevels/weighted_normal_bevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def modal(self, context, event):

elif self.key_step_down:
if no_stream(self.width_input_stream) and self.key_no_modifiers:
self.width = max(0.0001, self.width - width_factor)
self.width = max(0, self.width - width_factor)
self.dirty = True

elif self.key_confirm:
Expand All @@ -108,7 +108,7 @@ def modal(self, context, event):

if get_preferences().enable_mouse_values:
if no_stream(self.width_input_stream) and self.key_no_modifiers:
self.width = max(0.0001, self.width + self.mouse_value)
self.width = max(0, self.width + self.mouse_value)
self.dirty = True

if self.dirty:
Expand Down

0 comments on commit 5a5dd78

Please sign in to comment.