Fix T66967: skin modifier crash scaling skin radius to zero
This commit is contained in:
@@ -922,7 +922,13 @@ static Mesh *subdivide_base(Mesh *orig)
|
||||
|
||||
u = e->v1;
|
||||
radrat = (half_v2(outnode[e->v2].radius) / half_v2(outnode[e->v1].radius));
|
||||
radrat = (radrat + 1) / 2;
|
||||
if (isfinite(radrat)) {
|
||||
radrat = (radrat + 1) / 2;
|
||||
}
|
||||
else {
|
||||
/* Happens when skin is scaled to zero. */
|
||||
radrat = 1.0f;
|
||||
}
|
||||
|
||||
/* Add vertices and edge segments */
|
||||
for (j = 0; j < edge_subd[i]; j++, v++, outedge++) {
|
||||
|
||||
Reference in New Issue
Block a user