Fix instance creation UI refresh for FontReference

This commit is contained in:
Wojtek Figat
2021-06-30 11:31:53 +02:00
parent bdefa77226
commit ae58de44e3

View File

@@ -450,10 +450,7 @@ namespace FlaxEditor.CustomEditors.Editors
{
var newType = Values.Type;
SetValue(newType.CreateInstance());
if (ParentEditor != null)
ParentEditor.RebuildLayoutOnRefresh();
else
RebuildLayoutOnRefresh();
RebuildLayoutOnRefresh();
};
}