From bc521978ce52c2a94c0c224f1a066ffb20c294d4 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 2 Jan 2022 15:11:50 +0100 Subject: [PATCH] Fix undo modifications notify from nested `SyncPointEditor` --- Source/Editor/CustomEditors/SyncPointEditor.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Editor/CustomEditors/SyncPointEditor.cs b/Source/Editor/CustomEditors/SyncPointEditor.cs index 3555aaea4..8d8b85f2a 100644 --- a/Source/Editor/CustomEditors/SyncPointEditor.cs +++ b/Source/Editor/CustomEditors/SyncPointEditor.cs @@ -102,6 +102,16 @@ namespace FlaxEditor.CustomEditors /// protected virtual void OnModified() { + var parent = ParentEditor; + while (parent != null) + { + if (parent is SyncPointEditor syncPointEditor) + { + syncPointEditor.OnModified(); + break; + } + parent = parent.ParentEditor; + } } ///