Re-add colors back in for nodes.

This commit is contained in:
Chandler Cox
2025-05-23 13:29:05 -05:00
parent 4366976015
commit ae9622d271

View File

@@ -257,6 +257,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
// Actor or Script
else if (editor.Values[0] is SceneObject sceneObject)
{
node.TextColor = sceneObject.HasPrefabLink ? FlaxEngine.GUI.Style.Current.ProgressNormal : FlaxEngine.GUI.Style.Current.BackgroundSelected;
if (editor.Values.Info != ScriptMemberInfo.Null)
{
if (editor.Values.GetAttributes().FirstOrDefault(x => x is EditorDisplayAttribute) is EditorDisplayAttribute editorDisplayAttribute && !string.IsNullOrEmpty(editorDisplayAttribute.Name))