Browse Source

Merge pull request #33952 from KoBeWi/not_my_fault

Fix box selection being cancelled immediately
Rémi Verschelde 5 years ago
parent
commit
1f4cbc0f84
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/plugins/canvas_item_editor_plugin.cpp

+ 1 - 0
editor/plugins/canvas_item_editor_plugin.cpp

@@ -2238,6 +2238,7 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) {
 					// Clear the selection if not additive
 					// Clear the selection if not additive
 					editor_selection->clear();
 					editor_selection->clear();
 					viewport->update();
 					viewport->update();
+					selected_from_canvas = true;
 				};
 				};
 
 
 				drag_from = click;
 				drag_from = click;