Skip to content

Commit

Permalink
Adding checkbox opting for position defenitions
Browse files Browse the repository at this point in the history
  • Loading branch information
hmunktell committed Mar 9, 2025
1 parent 71d0843 commit 44a3001
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/addons/cam/ui/panels/machine_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ def draw(self, context):

# Position Definitions
if self.level >= 2:
header, panel = layout.panel_prop(self.machine, "use_position_definitions")
header.label(text="Position Definitions")
layout.use_property_split = False
header, panel = layout.panel(idname="use_pos_defs", default_closed=True)
header.prop(self.machine, "use_position_definitions", text="Position Definitions")
if panel:
panel.enabled = self.machine.use_position_definitions
panel.use_property_split = True
col = panel.column(align=True)
panel.prop(self.machine, "starting_position")
panel.prop(self.machine, "mtc_position")
panel.prop(self.machine, "ending_position")
Expand Down

0 comments on commit 44a3001

Please sign in to comment.