Fix adding keyframe to timeline if the value won't change

This commit is contained in:
Wojtek Figat
2021-09-22 17:09:55 +02:00
parent 8e6c7a6194
commit 59802246b2
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
if (frame == Timeline.CurrentFrame)
{
// Skip if value is the same
if (kValue == value)
if (Equals(kValue, value))
return;
// Update existing key value

View File

@@ -208,7 +208,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
if (frame == Timeline.CurrentFrame)
{
// Skip if value is the same
if (k.Value == value)
if (Equals(k.Value, value))
return;
// Update existing key value