Fix undo modifications notify from nested SyncPointEditor

This commit is contained in:
Wojtek Figat
2022-01-02 15:11:50 +01:00
parent 0f9f3905ed
commit bc521978ce

View File

@@ -102,6 +102,16 @@ namespace FlaxEditor.CustomEditors
/// </summary>
protected virtual void OnModified()
{
var parent = ParentEditor;
while (parent != null)
{
if (parent is SyncPointEditor syncPointEditor)
{
syncPointEditor.OnModified();
break;
}
parent = parent.ParentEditor;
}
}
/// <inheritdoc />