Merge pull request #111967 from Ivorforce/object-cast-to-protect

Statically protect `Object::cast_to` for unrelated `Object` types.
This commit is contained in:
Thaddeus Crews
2025-11-25 07:06:48 -06:00
8 changed files with 40 additions and 51 deletions

View File

@@ -514,7 +514,7 @@ void ViewportRotationControl::gui_input(const Ref<InputEvent> &p_event) {
const Ref<InputEventScreenDrag> screen_drag = p_event;
if (screen_drag.is_valid()) {
_process_drag(screen_drag, screen_drag->get_index(), screen_drag->get_position(), screen_drag->get_relative());
_process_drag(nullptr, screen_drag->get_index(), screen_drag->get_position(), screen_drag->get_relative());
}
}