[Bf-blender-cvs] [7e024d17a1e] refactor-mesh-bevel-weight-generic: Small fixes
Hans Goudey
noreply at git.blender.org
Mon May 30 19:57:57 CEST 2022
Commit: 7e024d17a1e11a907011afa441652a4469a070c9
Author: Hans Goudey
Date: Mon May 30 19:57:48 2022 +0200
Branches: refactor-mesh-bevel-weight-generic
https://developer.blender.org/rB7e024d17a1e11a907011afa441652a4469a070c9
Small fixes
===================================================================
M source/blender/editors/mesh/mesh_data.cc
M source/blender/modifiers/intern/MOD_bevel.c
===================================================================
diff --git a/source/blender/editors/mesh/mesh_data.cc b/source/blender/editors/mesh/mesh_data.cc
index bd2ac8d05af..4884b0c18a1 100644
--- a/source/blender/editors/mesh/mesh_data.cc
+++ b/source/blender/editors/mesh/mesh_data.cc
@@ -875,10 +875,10 @@ static int mesh_customdata_add_exec__internal(bContext *C, char htype, int type)
BLI_assert(CustomData_layertype_is_singleton(type) == true);
if (mesh->edit_mesh) {
- BM_data_layer_add(mesh->edit_mesh->bm, data, CD_BWEIGHT);
+ BM_data_layer_add(mesh->edit_mesh->bm, data, type);
}
else {
- CustomData_add_layer(data, CD_BWEIGHT, CD_CALLOC, NULL, tot);
+ CustomData_add_layer(data, type, CD_CALLOC, NULL, tot);
}
DEG_id_tag_update(&mesh->id, 0);
diff --git a/source/blender/modifiers/intern/MOD_bevel.c b/source/blender/modifiers/intern/MOD_bevel.c
index e2333d31a31..f6ca41c9d73 100644
--- a/source/blender/modifiers/intern/MOD_bevel.c
+++ b/source/blender/modifiers/intern/MOD_bevel.c
@@ -170,7 +170,6 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
if (BM_edge_is_manifold(e)) {
if (bmd->lim_flags & MOD_BEVEL_WEIGHT) {
weight = BM_elem_float_data_get(&bm->edata, e, CD_BWEIGHT);
- printf("weight: %.3f\n", weight);
if (weight == 0.0f) {
continue;
}
More information about the Bf-blender-cvs
mailing list