This commit is contained in:
@@ -187,7 +187,7 @@ namespace FlaxEditor.CustomEditors
|
||||
{
|
||||
for (int i = 0; i < Count; i++)
|
||||
{
|
||||
if (this[i] == referenceSceneObject)
|
||||
if ((SceneObject)this[i] == referenceSceneObject)
|
||||
continue;
|
||||
|
||||
if (this[i] == null || (this[i] is SceneObject valueSceneObject && valueSceneObject && valueSceneObject.PrefabObjectID != referenceSceneObject.PrefabObjectID))
|
||||
|
||||
@@ -174,7 +174,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
continue;
|
||||
|
||||
// Prevent from adding the same track twice
|
||||
if (SubTracks.Any(x => x is IObjectTrack y && y.Object == script))
|
||||
if (SubTracks.Any(x => x is IObjectTrack y && y.Object as SceneObject == script))
|
||||
continue;
|
||||
|
||||
var name = Utilities.Utils.GetPropertyNameUI(script.GetType().Name);
|
||||
|
||||
Reference in New Issue
Block a user