forked from bartvdbraak/blender
Code cleanup: do not use check for nan when doing check for finite due to
finite() would be FALSE in case of nan to. Thanks to Campbell for this information.
This commit is contained in:
parent
6c10080d24
commit
3bb3d46ccf
@ -1258,8 +1258,7 @@ int BKE_tracking_next(MovieTrackingContext *context)
|
||||
double x1, y1, x2, y2;
|
||||
ImBuf *ibuf= NULL;
|
||||
MovieTrackingMarker marker_new, *marker_keyed;
|
||||
int onbound= 0, coords_correct= 0;
|
||||
int nextfra;
|
||||
int onbound= 0, nextfra;
|
||||
|
||||
if(track->pattern_match==TRACK_MATCH_KEYFRAME)
|
||||
need_readjust= context->first_time;
|
||||
@ -1377,8 +1376,7 @@ int BKE_tracking_next(MovieTrackingContext *context)
|
||||
MEM_freeN(image_new);
|
||||
}
|
||||
|
||||
coords_correct= !isnan(x2) && !isnan(y2) && finite(x2) && finite(y2);
|
||||
if(coords_correct && !onbound && tracked) {
|
||||
if(tracked && !onbound && finite(x2) && finite(y2)) {
|
||||
if(context->first_time) {
|
||||
#pragma omp critical
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user