Commit: f63927a115710d02bf89f3e13a14b44355e4b514
Author: YimingWu
Date:   Thu Oct 29 12:05:40 2020 +0800
Branches: temp-gpencil-fading-modifier
https://developer.blender.org/rBf63927a115710d02bf89f3e13a14b44355e4b514

GPencil: Do not hide fading options when uncheked.

===================================================================

M       source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c

===================================================================

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);
 }
 
 /**

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to