mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Statically protect Object::cast_to for unrelated Object types.
Fix a handful of bugs associated with it.
This commit is contained in:
@@ -497,7 +497,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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user