Преглед на файлове

Allow to copy foreign nodes

(cherry picked from commit bd6e9e0d6ec94793a867325b6e9bd2203feed702)
kobewi преди 3 години
родител
ревизия
f874df58f7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      editor/scene_tree_dock.cpp

+ 1 - 1
editor/scene_tree_dock.cpp

@@ -428,7 +428,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
 		} break;
 		case TOOL_CUT:
 		case TOOL_COPY: {
-			if (!edited_scene || !_validate_no_foreign()) {
+			if (!edited_scene || (p_tool == TOOL_CUT && !_validate_no_foreign())) {
 				break;
 			}