fix #157 and selection mode getting stuck on id 0 when assigning postits
This commit is contained in:
parent
3d0279d6d4
commit
342cc73591
|
|
@ -92,7 +92,8 @@ var mementos_collected: int = 0:
|
|||
elif new_id < 0: current_dropzone_id = dropzone.get_child_count() - 1
|
||||
else: current_dropzone_id = new_id
|
||||
if current_context == ASSIGN and not focus_stickies:
|
||||
while not dropzone.get_child(current_dropzone_id) is Card: current_dropzone_id = (current_dropzone_id + 1) % dropzone.get_child_count()
|
||||
while not dropzone.get_child(current_dropzone_id) is Card:
|
||||
current_dropzone_id = (current_dropzone_id + (1 if not new_id == -1 else -1)) % dropzone.get_child_count()
|
||||
dropzone.get_child(current_dropzone_id).preview_sticky_note(currently_active_node)
|
||||
|
||||
elif not focus_stickies:
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ func reclaim_sticky_note() -> bool:
|
|||
attached_sticky_note.on_board = false
|
||||
attached_sticky_note.tween_transform_to(Transform2D(0, get_screen_position() + ancor_position))
|
||||
await attached_sticky_note.transform_tween_finished
|
||||
await get_tree().process_frame
|
||||
attached_sticky_note.reparent(self)
|
||||
attached_sticky_note.attached_to = self
|
||||
attached_sticky_note.owner = self.owner
|
||||
|
|
|
|||
Loading…
Reference in New Issue