Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
| Show First 20 Lines • Show All 558 Lines • ▼ Show 20 Lines | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| uiItemR(layout, ptr, "transition", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "transition", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, ptr, "start_delay", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "start_delay", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, ptr, "length", 0, IFACE_("Frames"), ICON_NONE); | uiItemR(layout, ptr, "length", 0, IFACE_("Frames"), ICON_NONE); | ||||
| uiItemS(layout); | uiItemS(layout); | ||||
| row = uiLayoutRowWithHeading(layout, true, IFACE_("Use Factor")); | row = uiLayoutRowWithHeading(layout, true, IFACE_("Use Factor")); | ||||
| uiLayoutSetPropDecorate(row, false); | |||||
| uiItemR(row, ptr, "use_percentage", 0, "", ICON_NONE); | uiItemR(row, ptr, "use_percentage", 0, "", ICON_NONE); | ||||
| sub = uiLayoutRow(row, true); | sub = uiLayoutRow(row, true); | ||||
| uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_percentage")); | uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_percentage")); | ||||
| uiItemR(sub, ptr, "percentage_factor", 0, "", ICON_NONE); | uiItemR(sub, ptr, "percentage_factor", 0, "", ICON_NONE); | ||||
| uiItemDecoratorR(row, ptr, "percentage_factor", 0); | |||||
| /* Check for incompatible time modifier. */ | /* Check for incompatible time modifier. */ | ||||
| Object *ob = ob_ptr.data; | Object *ob = ob_ptr.data; | ||||
| GpencilModifierData *md = ptr->data; | GpencilModifierData *md = ptr->data; | ||||
| if (BKE_gpencil_modifiers_findby_type(ob, eGpencilModifierType_Time) != NULL) { | if (BKE_gpencil_modifiers_findby_type(ob, eGpencilModifierType_Time) != NULL) { | ||||
| BKE_gpencil_modifier_set_error(md, "Build and Time Offset modifiers are incompatible"); | BKE_gpencil_modifier_set_error(md, "Build and Time Offset modifiers are incompatible"); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||