fix [#36781] triangulation modifer creases
new geometry was initializing its original index to 0 (so all edges displayed with the first edges crease value). now initialize to NONE.
This commit is contained in:
@@ -971,6 +971,11 @@ static void layerDefault_mcol(void *data, int count)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void layerDefault_origindex(void *data, int count)
|
||||||
|
{
|
||||||
|
fill_vn_i((int *)data, count, ORIGINDEX_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
static void layerInterp_bweight(void **sources, const float *weights,
|
static void layerInterp_bweight(void **sources, const float *weights,
|
||||||
const float *UNUSED(sub_weights), int count, void *dest)
|
const float *UNUSED(sub_weights), int count, void *dest)
|
||||||
{
|
{
|
||||||
@@ -1077,7 +1082,7 @@ static const LayerTypeInfo LAYERTYPEINFO[CD_NUMTYPES] = {
|
|||||||
{sizeof(MCol) * 4, "MCol", 4, N_("Col"), NULL, NULL, layerInterp_mcol,
|
{sizeof(MCol) * 4, "MCol", 4, N_("Col"), NULL, NULL, layerInterp_mcol,
|
||||||
layerSwap_mcol, layerDefault_mcol},
|
layerSwap_mcol, layerDefault_mcol},
|
||||||
/* 7: CD_ORIGINDEX */
|
/* 7: CD_ORIGINDEX */
|
||||||
{sizeof(int), "", 0, NULL, NULL, NULL, NULL, NULL, NULL},
|
{sizeof(int), "", 0, NULL, NULL, NULL, NULL, NULL, layerDefault_origindex},
|
||||||
/* 8: CD_NORMAL */
|
/* 8: CD_NORMAL */
|
||||||
/* 3 floats per normal vector */
|
/* 3 floats per normal vector */
|
||||||
{sizeof(float) * 3, "vec3f", 1, NULL, NULL, NULL, NULL, NULL, NULL},
|
{sizeof(float) * 3, "vec3f", 1, NULL, NULL, NULL, NULL, NULL, NULL},
|
||||||
|
|||||||
Reference in New Issue
Block a user