diff options
| author | Aaron Franke <arnfranke@yahoo.com> | 2021-08-13 16:31:57 -0500 |
|---|---|---|
| committer | Aaron Franke <arnfranke@yahoo.com> | 2021-11-12 15:37:54 -0600 |
| commit | 3c0fdcc8acfadb124fbfa914532868948561c351 (patch) | |
| tree | e6d222c6488c1e4f1a9e4ffa68c1404473a00843 /editor/plugins/shader_editor_plugin.cpp | |
| parent | 4f85cad013c5469a39287e9aa474735f950e302c (diff) | |
| download | redot-engine-3c0fdcc8acfadb124fbfa914532868948561c351.tar.gz | |
Use "enum class" for input enums
Diffstat (limited to 'editor/plugins/shader_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/shader_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 9d2b4c88c5..984dc0a1c9 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -552,7 +552,7 @@ void ShaderEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) { Ref<InputEventMouseButton> mb = ev; if (mb.is_valid()) { - if (mb->get_button_index() == MOUSE_BUTTON_RIGHT && mb->is_pressed()) { + if (mb->get_button_index() == MouseButton::RIGHT && mb->is_pressed()) { CodeEdit *tx = shader_editor->get_text_editor(); Point2i pos = tx->get_line_column_at_pos(mb->get_global_position() - tx->get_global_position()); |
