fix set type on press edit buttons not working

This commit is contained in:
Ruan Lucas
2023-07-20 09:25:48 -04:00
parent 8a9b76a468
commit e40c0be00d

View File

@@ -390,9 +390,9 @@ namespace FlaxEditor.CustomEditors.Dedicated
private void UpdateButtonsColors()
{
var isFree = IsFreeTangentMode(SelectedSpline, _lastPointSelected.Index);
var isLinear = IsLinearTangentMode(SelectedSpline, _lastPointSelected.Index);
var isAligned = IsAlignedTangentMode(SelectedSpline, _lastPointSelected.Index);
var isFree = _currentTangentMode is FreeTangentMode;
var isLinear = _currentTangentMode is LinearTangentMode;
var isAligned = _currentTangentMode is AlignedTangentMode;
_linearTangentButton.Button.BackgroundColor = isLinear ? SelectedButtonColor : NormalButtonColor;
_freeTangentButton.Button.BackgroundColor = isFree ? SelectedButtonColor : NormalButtonColor;