From 3c6838ee3524f1aa02c8140f8e1d9c0c361318a8 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 3 Feb 2026 19:13:31 +0100 Subject: [PATCH] Fix error in reparent action when scene is missing (eg. in prefab editor) --- Source/Editor/Undo/Actions/ParentActorsAction.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Undo/Actions/ParentActorsAction.cs b/Source/Editor/Undo/Actions/ParentActorsAction.cs index 312ce578d..aed85cb3c 100644 --- a/Source/Editor/Undo/Actions/ParentActorsAction.cs +++ b/Source/Editor/Undo/Actions/ParentActorsAction.cs @@ -134,7 +134,8 @@ namespace FlaxEditor.Actions var obj = Object.Find(ref item.ID); if (obj != null) { - scenes.Add(obj.Parent.Scene); + if (obj.Parent != null) + scenes.Add(obj.Parent.Scene); if (obj is Actor actor) actor.SetParent(newParent, _worldPositionsStays, true); else