Improve C# Object comparison by using native pointer compare #1061 #713 #795

This commit is contained in:
Wojtek Figat
2023-05-05 10:49:07 +02:00
parent f0176c3520
commit 5e31a678bd
3 changed files with 17 additions and 5 deletions

View File

@@ -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);