Fix nan problem in previous bevel commit.
For chains, access to g_prod[0] was undefined. And two minor style (whitespace) changes.
This commit is contained in:
Submodule release/datafiles/locale updated: cd65bc3277...469c949d1c
Submodule release/scripts/addons updated: f5536e5e49...c88411ff77
@@ -1985,6 +1985,7 @@ static bool adjust_the_cycle_or_chain_fast(BoundVert *vstart, int np, bool iscyc
|
||||
g_prod[i] = gprod;
|
||||
gprod_sum += gprod;
|
||||
}
|
||||
g_prod[0] = 1.0f;
|
||||
if (iscycle) {
|
||||
gprod *= g[0];
|
||||
if (fabs(gprod - 1.0f) > BEVEL_EPSILON) {
|
||||
@@ -1993,8 +1994,6 @@ static bool adjust_the_cycle_or_chain_fast(BoundVert *vstart, int np, bool iscyc
|
||||
MEM_freeN(g_prod);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
g_prod[0] = 1.0f;
|
||||
}
|
||||
if (gprod_sum == 0.0f) {
|
||||
MEM_freeN(g);
|
||||
|
Submodule source/tools updated: ccf20e0870...7695e14cfc
Reference in New Issue
Block a user