1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Allow to copy foreign nodes

(cherry picked from commit bd6e9e0d6e)
This commit is contained in:
kobewi
2021-12-13 13:33:06 +01:00
committed by Rémi Verschelde
parent e88f387958
commit f874df58f7

View File

@@ -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;
}