postits are now returned to the panel if the group doesn't match

This commit is contained in:
Adrian Schmid 2023-08-22 20:00:33 +02:00
parent 956f2ea3bd
commit 72efb61d28
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ func attach_postit_to_card(postit: Area2D, card: Area2D, update_dict = false):
return return
emit_signal("board_completed") emit_signal("board_completed")
elif active_context == ui_context.ASSIGN_POST_IT:
_return_postit_to_panels(postit)
# Mark area that was hovered over as currently selected # Mark area that was hovered over as currently selected
func handle_hover(to_handle: Area2D): func handle_hover(to_handle: Area2D):
if to_handle != currently_selected_node: if to_handle != currently_selected_node: