X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fview.cpp;h=9fd5684f6ab50851f82c42c8ba10a25da16b3abc;hb=eb6c78e5a38dcf4513915b72d2dbe2e35e2958a1;hp=2050f587ec08eebc143bfe6eae38204bb1cfe13c;hpb=85dba3e775b10d1a653175318e79881e416db19a;p=r2c2.git diff --git a/source/3d/view.cpp b/source/3d/view.cpp index 2050f58..9fd5684 100644 --- a/source/3d/view.cpp +++ b/source/3d/view.cpp @@ -99,7 +99,7 @@ void View3D::update_shadow_area() { Vector minp, maxp; compute_bounds(minp, maxp); - shadow.set_target((minp+maxp)/2.0f, (maxp-minp).norm()/2.0f); + shadow.set_target((minp+maxp)/2.0f, max((maxp-minp).norm()/2.0f, 0.1f)); } } // namespace R2C2