Fix crash in Solidify modifier with Inner Crease
Since a8a454287a the simple case would crash:
- Add place
- Add Solidify modifier
- Set Inner Crease to something non-zero
Seems to be a mistake in the logic which was trying to access
existing custom data layer on a clean result while it is more
logical to create the layer.
Was initially reported by the studio who could not open
production files after the change.
This commit is contained in:
@@ -1034,7 +1034,8 @@ Mesh *MOD_solidify_extrude_modifyMesh(ModifierData *md, const ModifierEvalContex
|
||||
|
||||
float *result_edge_crease = NULL;
|
||||
if (crease_rim || crease_outer || crease_inner) {
|
||||
result_edge_crease = (float *)CustomData_get_layer(&result->edata, CD_CREASE);
|
||||
result_edge_crease = (float *)CustomData_add_layer(
|
||||
&result->edata, CD_CREASE, CD_SET_DEFAULT, NULL, result->totedge);
|
||||
}
|
||||
|
||||
/* add faces & edges */
|
||||
|
||||
Reference in New Issue
Block a user