window evaluation, provide path to get to per-window settings

This commit is contained in:
Ryan Fleury
2025-04-17 13:14:08 -07:00
parent 9bc8641db1
commit a2047619c4
6 changed files with 27 additions and 8 deletions
+1 -1
View File
@@ -3172,7 +3172,7 @@ ui_anim_(UI_Key key, UI_AnimParams *params)
{
node->params.epsilon = 0.005f;
}
if(node->params.rate == 1)
if(node->params.rate == 1 || abs_f32(node->current - node->params.target) < abs_f32(node->params.epsilon))
{
node->current = node->params.target;
}