fix: photo resets rotation and goes to front on pickup
This commit is contained in:
parent
5be55ce25e
commit
f3d267bed2
1 changed files with 3 additions and 1 deletions
|
|
@ -46,7 +46,9 @@ void PinnedPhoto::on_input_event(Viewport *viewport, Ref<InputEvent> event, int
|
|||
this->conclusion_field->notify_photo_picked(this);
|
||||
this->conclusion_field = nullptr;
|
||||
}
|
||||
this->popup_container->set_visible(true);
|
||||
set_global_rotation(0);
|
||||
this->popup_container->set_visible(!this->popup_label->get_text().is_empty());
|
||||
this->get_parent()->move_child(this, this->get_parent()->get_child_count() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue