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
No known key found for this signature in database
GPG key ID: C3336907360768E1

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