浏览代码

Merge pull request #22278 from JFonS/fix_21293

Fix selection box staying when editing a GridMap
Rémi Verschelde 7 年之前
父节点
当前提交
a4f5daca67
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gridmap/grid_map_editor_plugin.cpp

+ 1 - 1
modules/gridmap/grid_map_editor_plugin.cpp

@@ -645,7 +645,7 @@ bool GridMapEditor::forward_spatial_input_event(Camera *p_camera, const Ref<Inpu
 				}
 				}
 				set_items.clear();
 				set_items.clear();
 				input_action = INPUT_NONE;
 				input_action = INPUT_NONE;
-				return true;
+				return set_items.size() > 0;
 			}
 			}
 
 
 			if (mb->get_button_index() == BUTTON_LEFT && input_action != INPUT_NONE) {
 			if (mb->get_button_index() == BUTTON_LEFT && input_action != INPUT_NONE) {