Fix: #27861 bevel angle limit at 90° wasn't working well on cube, tweaked
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 5 Jul 2011 08:28:54 +0000 (08:28 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 5 Jul 2011 08:28:54 +0000 (08:28 +0000)
epsilon value to be a bit smaller.

source/blender/blenkernel/intern/BME_tools.c

index 7665b581d7e5d42578a8534123aab1576d69626e..99b6e7f909554bb3bc32eb6b73c8d39817262e63 100644 (file)
@@ -1002,7 +1002,7 @@ static BME_Mesh *BME_bevel_initialize(BME_Mesh *bm, int options, int UNUSED(defg
        }
 
        /* edge pass */
-       threshold = (float)cos((angle + 0.00001) * M_PI / 180.0);
+       threshold = (float)cos((angle + 0.001) * M_PI / 180.0);
        for (e=bm->edges.first; e; e=e->next) {
                e->tflag1 = BME_BEVEL_ORIG;
                weight = 0.0;