Skip to content

Commit

Permalink
fix: when creating a new formation with nothing selected, the mode sh…
Browse files Browse the repository at this point in the history
…ould be "Empty"
  • Loading branch information
ntamas committed Jul 14, 2023
1 parent e4c036f commit b2a11f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sbstudio/plugin/operators/update_formation.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def propose_mode_for_formation_update(context) -> str:
)
else:
# We are not in Edit mode (most likely Object mode)
return "SELECTED_OBJECTS" if has_selection(context=context) else "ALL_DRONES"
return "SELECTED_OBJECTS" if has_selection(context=context) else "EMPTY"


def collect_objects_and_points_for_formation_update(selection, name):
Expand Down

0 comments on commit b2a11f6

Please sign in to comment.