Add support for PrefabObject tracks and automated animation instancing with UsePrefabObjects enabled

This commit is contained in:
Wojtek Figat
2021-12-11 17:27:22 +01:00
parent 77e1ec530b
commit a9aaed6f33
6 changed files with 91 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
var obj = Object;
var hasObject = obj != null;
TitleTintColor = hasObject ? Color.White : Color.Red;
TitleTintColor = hasObject ? (Flags.HasFlag(TrackFlags.PrefabObject) ? Style.Current.ProgressNormal : Color.White) : Color.Red;
if (hasObject != _hasObject)
OnObjectExistenceChanged(obj);
_hasObject = hasObject;