Fix: FCurve Bounds - return when can't be found

Originally this was added by #105179
This code was reverted by accident in #105177
This commit is contained in:
Christoph Lendenfeld
2023-03-17 17:16:11 +01:00
parent 48496f1473
commit f4fd348d22

View File

@@ -3651,7 +3651,12 @@ static bool get_normalized_fcurve_bounds(FCurve *fcu,
rctf *r_bounds)
{
const bool fcu_selection_only = false;
BKE_fcurve_calc_bounds(fcu, fcu_selection_only, include_handles, range, r_bounds);
const bool found_bounds = BKE_fcurve_calc_bounds(
fcu, fcu_selection_only, include_handles, range, r_bounds);
if (!found_bounds) {
return false;
}
const short mapping_flag = ANIM_get_normalization_flags(ac);