Refactor Bezier splines drawing and editing to property evaluate value and match curve evaluation

#3051
This commit is contained in:
Wojtek Figat
2024-12-02 19:10:28 +01:00
parent 0a4a431f74
commit 57628c3d5f
12 changed files with 129 additions and 93 deletions

View File

@@ -230,7 +230,7 @@ namespace FlaxEditor.GUI.Timeline.GUI
continue;
// Draw all ticks
int l = Mathf.Clamp(smallestTick + level, 0, _tickSteps.Length - 1);
int l = Mathf.Clamp(smallestTick + level, 0, _tickSteps.Length - 2);
var lStep = _tickSteps[l];
var lNextStep = _tickSteps[l + 1];
int startTick = Mathf.FloorToInt(min / lStep);