util2d::getDepth() fixed tmp not divided

This commit is contained in:
matlabbe
2016-08-27 09:06:15 -04:00
parent 7161756cc9
commit fb527e5df4
+2 -2
View File
@@ -1016,9 +1016,9 @@ float getDepth(
tmp = d; tmp = d;
++count; ++count;
} }
else if(fabs(d - tmp) < maxZError) else if(fabs(d - tmp/float(count)) < maxZError)
{ {
tmp+=d; tmp += d;
++count; ++count;
} }
} }