From f358db54fdd6cb8fbabb9fc42c9d222dd5f4c2bc Mon Sep 17 00:00:00 2001 From: malomo Date: Tue, 14 Feb 2012 12:02:43 +0000 Subject: [PATCH] Added a quick check for callback presence (avoid crash if cb function is not provided) --- vcg/complex/algorithms/create/resampler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/create/resampler.h b/vcg/complex/algorithms/create/resampler.h index 5b094f4f..a7f599ed 100644 --- a/vcg/complex/algorithms/create/resampler.h +++ b/vcg/complex/algorithms/create/resampler.h @@ -340,7 +340,7 @@ template siz.Y(); j++) { - cb((100*j)/this->siz.Y(),"Marching "); + if (cb) cb((100*j)/this->siz.Y(),"Marching "); ProcessSlice(extractor);//find cells where there is the isosurface and examine it NextSlice(); }