Fix crashes in *_input functions
This commit is contained in:
parent
a864a703ee
commit
504bc5cc67
43 changed files with 103 additions and 0 deletions
|
|
@ -531,6 +531,8 @@ void EditorAudioBus::_effect_add(int p_which) {
|
|||
}
|
||||
|
||||
void EditorAudioBus::_gui_input(const Ref<InputEvent> &p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
Ref<InputEventMouseButton> mb = p_event;
|
||||
if (mb.is_valid() && mb->get_button_index() == MOUSE_BUTTON_RIGHT && mb->is_pressed()) {
|
||||
Vector2 pos = Vector2(mb->get_position().x, mb->get_position().y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue