Skip to content

Commit

Permalink
fix: register recon_poly segments with mouse values system
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-hm committed Nov 4, 2022
1 parent d08f5bc commit 64929d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sketch/recon_poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def modal(self, context, event):
self.inner_radius = max(0, self.inner_radius + self.mouse_value)
self.width = max(self.computed_inner_radius() * -1, self.width)
self.dirty = True
elif no_stream(self.segments_input_stream) and self.key_alt:
self.segments = max(3, self.segments + self.mouse_step)
self.dirty = True

if self.dirty:
self.operate(context)
Expand Down Expand Up @@ -425,6 +428,7 @@ def draw_text_callback(self):
"Alt (±2) | Shift + Alt (±1)",
active=self.key_alt,
alt_mode=self.key_shift_alt,
mouse_value=True,
input_stream=self.segments_input_stream)

draw_property(
Expand Down

0 comments on commit 64929d4

Please sign in to comment.