Skip to content

Commit

Permalink
refactor: refactor button function in create creature mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasfremming committed Nov 11, 2024
1 parent cad267b commit 7e27202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent_parts_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def handle_physics():
def make_limb():
nonlocal make_limb_mode
make_limb_mode = not make_limb_mode
make_motorjoint_mode = False


limb_button = Button(
text="Add limb",
Expand All @@ -81,7 +81,7 @@ def make_limb():
def add_motorjoint():
nonlocal make_motorjoint_mode
make_motorjoint_mode = not make_motorjoint_mode
make_limb_mode = False


motorjoint_button = Button(
text="Add joint",
Expand Down

0 comments on commit 7e27202

Please sign in to comment.