浏览代码

prevent the click to get processed further after a paste action

Nodragem 1 年之前
父节点
当前提交
e7e633760a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/gridmap/editor/grid_map_editor_plugin.cpp

+ 1 - 0
modules/gridmap/editor/grid_map_editor_plugin.cpp

@@ -643,6 +643,7 @@ EditorPlugin::AfterGUIInput GridMapEditor::forward_spatial_input_event(Camera3D
 					_do_paste();
 					input_action = INPUT_NONE;
 					_update_paste_indicator();
+					return EditorPlugin::AFTER_GUI_INPUT_STOP;
 				} else if (mb->is_shift_pressed() && can_edit) {
 					input_action = INPUT_SELECT;
 					last_selection = selection;