Fix some inactive modifier properties not being editable

The convention is to keep inactive settings editable even if they are grayed
out for having no effect due to other settings.
This commit is contained in:
Brecht Van Lommel 2020-10-01 12:13:38 +02:00
parent f187256624
commit 9f9dbaf22b
3 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel)
uiItemR(col, ptr, "exterior_band_width", 0, NULL, ICON_NONE);
uiLayout *subcol = uiLayoutColumn(col, false);
uiLayoutSetEnabled(subcol, !mvmd->fill_volume);
uiLayoutSetActive(subcol, !mvmd->fill_volume);
uiItemR(subcol, ptr, "interior_band_width", 0, NULL, ICON_NONE);
}
{

View File

@ -482,13 +482,13 @@ static void advanced_panel_draw(const bContext *UNUSED(C), Panel *panel)
uiLayoutSetPropSep(layout, true);
uiLayoutSetEnabled(layout, !has_displacement);
uiLayoutSetActive(layout, !has_displacement);
uiItemR(layout, ptr, "subdivision_type", 0, NULL, ICON_NONE);
uiItemR(layout, ptr, "quality", 0, NULL, ICON_NONE);
col = uiLayoutColumn(layout, false);
uiLayoutSetEnabled(col, true);
uiLayoutSetActive(col, true);
uiItemR(col, ptr, "uv_smooth", 0, NULL, ICON_NONE);
uiItemR(col, ptr, "boundary_smooth", 0, NULL, ICON_NONE);

View File

@ -469,7 +469,7 @@ static void advanced_panel_draw(const bContext *C, Panel *panel)
uiItemR(layout, ptr, "use_limit_surface", 0, NULL, ICON_NONE);
uiLayout *col = uiLayoutColumn(layout, true);
uiLayoutSetEnabled(col, RNA_boolean_get(ptr, "use_limit_surface"));
uiLayoutSetActive(col, RNA_boolean_get(ptr, "use_limit_surface"));
uiItemR(col, ptr, "quality", 0, NULL, ICON_NONE);
uiItemR(layout, ptr, "uv_smooth", 0, NULL, ICON_NONE);