Browse Source

Allow to copy foreign nodes

kobewi 3 năm trước cách đây
mục cha
commit
bd6e9e0d6e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/scene_tree_dock.cpp

+ 1 - 1
editor/scene_tree_dock.cpp

@@ -432,7 +432,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;
 			}