Fix T58640: Round corner in edge crease of subdivided surfaces

Fix T60502: Creasing behavior on 2.8 seams wrong

Was a mistake in a boundary vertices sharpness calculation.
This commit is contained in:
Sergey Sharybin 2019-01-22 15:33:28 +01:00
parent 06a6b5dba4
commit a8902ab49a
Notes: blender-bot 2023-02-14 04:45:01 +01:00
Referenced by issue #60502, Creasing behavior on 2.8 seams wrong
Referenced by issue #59646, Weird Sub-division results when used in conjunction with creases
Referenced by issue #58640, Round corner in edge crease of subdivided surfaces
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ inline bool TopologyRefinerFactory<TopologyRefinerData>::assignComponentTags(
const float sharpness1 = refiner._levels[0]->getEdgeSharpness(edge1);
// TODO(sergey): Find a better mixing between edge and vertex sharpness.
sharpness += min(sharpness0, sharpness1);
sharpness = min(sharpness, 1.0f);
sharpness = min(sharpness, 10.0f);
}
setBaseVertexSharpness(refiner, vertex_index, sharpness);
}