Skip to content

Commit

Permalink
Merge pull request #81531 from geowarin/double-input-gridmap
Browse files Browse the repository at this point in the history
Fix some keys triggering their actions twice in GridMap
  • Loading branch information
akien-mga committed Sep 14, 2023
2 parents 26493ca + 5f3cbcb commit 84caaf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gridmap/editor/grid_map_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ EditorPlugin::AfterGUIInput GridMapEditor::forward_spatial_input_event(Camera3D
for (int i = 0; i < options->get_popup()->get_item_count(); ++i) {
const Ref<Shortcut> &shortcut = options->get_popup()->get_item_shortcut(i);
if (shortcut.is_valid() && shortcut->matches_event(p_event)) {
accept_event();
_menu_option(options->get_popup()->get_item_id(i));
return EditorPlugin::AFTER_GUI_INPUT_STOP;
}
Expand Down

0 comments on commit 84caaf9

Please sign in to comment.