[Bf-blender-cvs] [cb1875c6f5d] blender-v2.90-release: Decimate Modifier: Restore vertex group factor property in UI
Hans Goudey
noreply at git.blender.org
Mon Sep 21 09:50:30 CEST 2020
Commit: cb1875c6f5dde5c60aa2e4ef907acbb6597f847c
Author: Hans Goudey
Date: Mon Sep 7 15:34:32 2020 -0500
Branches: blender-v2.90-release
https://developer.blender.org/rBcb1875c6f5dde5c60aa2e4ef907acbb6597f847c
Decimate Modifier: Restore vertex group factor property in UI
This property was inadvertently removed from the modifier's panel and
it wasn't caught in time for the release of 2.90. Thanks to the user
"VermossomreV" for bringing this to my attention.
Differential Revision: https://developer.blender.org/D8790
===================================================================
M source/blender/modifiers/intern/MOD_decimate.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_decimate.c b/source/blender/modifiers/intern/MOD_decimate.c
index 75fd558ae39..35d4f5babe4 100644
--- a/source/blender/modifiers/intern/MOD_decimate.c
+++ b/source/blender/modifiers/intern/MOD_decimate.c
@@ -258,6 +258,10 @@ static void panel_draw(const bContext *C, Panel *panel)
uiItemR(layout, &ptr, "use_collapse_triangulate", 0, NULL, ICON_NONE);
modifier_vgroup_ui(layout, &ptr, &ob_ptr, "vertex_group", "invert_vertex_group", NULL);
+ sub = uiLayoutRow(layout, true);
+ bool has_vertex_group = RNA_string_length(&ptr, "vertex_group") != 0;
+ uiLayoutSetActive(sub, has_vertex_group);
+ uiItemR(sub, &ptr, "vertex_group_factor", 0, NULL, ICON_NONE);
}
else if (decimate_type == MOD_DECIM_MODE_UNSUBDIV) {
uiItemR(layout, &ptr, "iterations", 0, NULL, ICON_NONE);
More information about the Bf-blender-cvs
mailing list