GPv3: Opacity modifier #116946
|
@ -7581,7 +7581,7 @@ static void rna_def_modifier_grease_pencil_vertex_group(StructRNA *srna,
|
|||
|
||||
prop = RNA_def_property(srna, "vertex_group_name", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, nullptr, "influence.vertex_group_name");
|
||||
RNA_def_property_ui_text(prop, "Name", "Vertex group name for modulating the deform");
|
||||
RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform");
|
||||
RNA_def_property_string_funcs(prop, nullptr, nullptr, vertex_group_name_set_fn);
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
|
@ -7645,7 +7645,7 @@ static void rna_def_modifier_grease_pencil_opacity(BlenderRNA *brna)
|
|||
|
||||
prop = RNA_def_property(srna, "color_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, color_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Color Mode", "Attributes to modify");
|
||||
RNA_def_property_ui_text(prop, "Mode", "Attributes to modify");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "color_factor", PROP_FLOAT, PROP_NONE);
|
||||
|
|
|
@ -107,7 +107,7 @@ void draw_layer_filter_settings(const bContext * /*C*/, uiLayout *layout, Pointe
|
|||
sub = uiLayoutRow(row, true);
|
||||
uiItemR(sub, ptr, "invert_layer_filter", UI_ITEM_NONE, "", ICON_ARROW_LEFTRIGHT);
|
||||
|
||||
row = uiLayoutRowWithHeading(col, true, "Layer Pass Filter");
|
||||
row = uiLayoutRowWithHeading(col, true, "Layer Pass");
|
||||
uiLayoutSetPropDecorate(row, false);
|
||||
sub = uiLayoutRow(row, true);
|
||||
LukasTonne marked this conversation as resolved
Outdated
|
||||
uiItemR(sub, ptr, "use_layer_pass_filter", UI_ITEM_NONE, "", ICON_NONE);
|
||||
|
@ -134,7 +134,7 @@ void draw_material_filter_settings(const bContext * /*C*/, uiLayout *layout, Poi
|
|||
sub = uiLayoutRow(row, true);
|
||||
uiItemR(sub, ptr, "invert_material_filter", UI_ITEM_NONE, "", ICON_ARROW_LEFTRIGHT);
|
||||
|
||||
row = uiLayoutRowWithHeading(col, true, "Material Pass Filter");
|
||||
row = uiLayoutRowWithHeading(col, true, "Material Pass");
|
||||
uiLayoutSetPropDecorate(row, false);
|
||||
sub = uiLayoutRow(row, true);
|
||||
uiItemR(sub, ptr, "use_material_pass_filter", UI_ITEM_NONE, "", ICON_NONE);
|
||||
|
|
Loading…
Reference in New Issue
Would be nice to have the checkbox in the same line as the pass button. I haven't found a good way to combine these buttons yet, could use help from UI experts.
It's ugly but possible, here's an example from the limit location constraint:
I Agree to have the checkbox on the same line. Hans proposal seems a right choice
I didn't know about the
uiLayoutRowWithHeading
feature, thanks.