mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Fix crashes in *_input functions
This commit is contained in:
parent
a864a703ee
commit
504bc5cc67
43 changed files with 103 additions and 0 deletions
|
|
@ -33,6 +33,8 @@
|
|||
#include "editor/editor_scale.h"
|
||||
|
||||
void MeshEditor::_gui_input(Ref<InputEvent> p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
Ref<InputEventMouseMotion> mm = p_event;
|
||||
if (mm.is_valid() && mm->get_button_mask() & MOUSE_BUTTON_MASK_LEFT) {
|
||||
rot_x -= mm->get_relative().y * 0.01;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue