You shouldn't need to test both isnan and finite, testing only finite() will be false for both inf and nan values.
On Sat, Dec 31, 2011 at 8:30 PM, Sergey Sharybin <sergey....@gmail.com> wrote: > Revision: 43027 > > http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43027 > Author: nazgul > Date: 2011-12-31 09:30:39 +0000 (Sat, 31 Dec 2011) > Log Message: > ----------- > Minor code cleanup after resolving conflicts > > Modified Paths: > -------------- > trunk/blender/source/blender/blenkernel/intern/tracking.c > > Modified: trunk/blender/source/blender/blenkernel/intern/tracking.c > =================================================================== > --- trunk/blender/source/blender/blenkernel/intern/tracking.c 2011-12-31 > 09:29:49 UTC (rev 43026) > +++ trunk/blender/source/blender/blenkernel/intern/tracking.c 2011-12-31 > 09:30:39 UTC (rev 43027) > @@ -1377,7 +1377,7 @@ > MEM_freeN(image_new); > } > > - coords_correct= !onbound && !isnan(x2) && !isnan(y2) > && finite(x2) && finite(y2); > + coords_correct= !isnan(x2) && !isnan(y2) && > finite(x2) && finite(y2); > if(coords_correct && !onbound && tracked) { > if(context->first_time) { > #pragma omp critical > > _______________________________________________ > Bf-blender-cvs mailing list > bf-blender-...@blender.org > http://lists.blender.org/mailman/listinfo/bf-blender-cvs -- - Campbell _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers