IMB: Add asserts that returned fps and fps base are strictly positives.
Forgot to add that in previous commit, also related to T53003.
This commit is contained in:
@@ -1389,6 +1389,9 @@ bool IMB_anim_get_fps(struct anim *anim,
|
|||||||
UNUSED_VARS(no_av_base);
|
UNUSED_VARS(no_av_base);
|
||||||
*frs_sec_base = (float)frs_sec_base_double;
|
*frs_sec_base = (float)frs_sec_base_double;
|
||||||
#endif
|
#endif
|
||||||
|
BLI_assert(*frs_sec > 0);
|
||||||
|
BLI_assert(*frs_sec_base > 0.0f);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user