fix: photo resets rotation and goes to front on pickup

This commit is contained in:
Sara Gerretsen 2025-11-03 18:05:42 +01:00
parent 5be55ce25e
commit f3d267bed2

View file

@ -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);
}
}