diff options
author | YimingWu <xp8110@outlook.com> | 2020-10-29 07:05:40 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2020-10-29 07:05:40 +0300 |
commit | f63927a115710d02bf89f3e13a14b44355e4b514 (patch) | |
tree | 6423750b539272b11a18818fd91c0ea0eeb7e5de /source | |
parent | b5f43723cc0ec137cf931af2bd5215d7d929ac51 (diff) |
GPencil: Do not hide fading options when uncheked.temp-gpencil-fading-modifier
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c b/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c index 9a5e95f7c89..6c4dd885803 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c @@ -214,13 +214,11 @@ void gpencil_modifier_fading_draw(const bContext *UNUSED(C), Panel *panel) uiLayoutSetPropSep(layout, true); bool fading_enabled = RNA_boolean_get(ptr, "use_fading"); - if (fading_enabled) { - uiItemR(layout, ptr, "object", 0, NULL, ICON_CUBE); - uiLayout *sub = uiLayoutColumn(layout, true); - uiItemR(sub, ptr, "fading_start", 0, NULL, ICON_NONE); - uiItemR(sub, ptr, "fading_end", 0, IFACE_("End"), ICON_NONE); - uiItemR(layout, ptr, "fading_end_factor", 0, NULL, ICON_NONE); - } + uiItemR(layout, ptr, "object", 0, NULL, ICON_CUBE); + uiLayout *sub = uiLayoutColumn(layout, true); + uiItemR(sub, ptr, "fading_start", 0, NULL, ICON_NONE); + uiItemR(sub, ptr, "fading_end", 0, IFACE_("End"), ICON_NONE); + uiItemR(layout, ptr, "fading_end_factor", 0, NULL, ICON_NONE); } /** |