Fix #108229: Wider tolerance shuffling NLA strips #108257

Merged
YimingWu merged 1 commits from ChengduLittleA/blender:fix-108229 into main 2023-06-08 04:15:53 +02:00
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ static float transdata_get_time_shuffle_offset_side(ListBase *trans_datas, const
}
total_offset += offset;
} while (!IS_EQF(offset, 0.0f));
} while (!IS_EQT(offset, 0.0f, 1e-4));
/* Needs a eps greater than FLT_EPS because strip->start/end could be non-integral, and after
* those calculations, `offset` could fall outside of FLT_EPS. */
return total_offset;
}