Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvgedit.c
| Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Lines | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| col = uiLayoutColumnWithHeading(layout, false, IFACE_("Group Add")); | col = uiLayoutColumnWithHeading(layout, false, IFACE_("Group Add")); | ||||
| row = uiLayoutRow(col, true); | row = uiLayoutRow(col, true); | ||||
| uiLayoutSetPropDecorate(row, false); | uiLayoutSetPropDecorate(row, false); | ||||
| sub = uiLayoutRow(row, true); | sub = uiLayoutRow(row, true); | ||||
| uiItemR(sub, ptr, "use_add", 0, "", ICON_NONE); | uiItemR(sub, ptr, "use_add", 0, "", ICON_NONE); | ||||
| sub = uiLayoutRow(sub, true); | sub = uiLayoutRow(sub, true); | ||||
| uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_add")); | uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_add")); | ||||
| uiLayoutSetPropSep(sub, false); | uiLayoutSetPropSep(sub, false); | ||||
| uiItemR(sub, ptr, "add_threshold", UI_ITEM_R_SLIDER, "Threshold", ICON_NONE); | uiItemR(sub, ptr, "add_threshold", UI_ITEM_R_SLIDER, IFACE_("Threshold"), ICON_NONE); | ||||
| uiItemDecoratorR(row, ptr, "add_threshold", 0); | uiItemDecoratorR(row, ptr, "add_threshold", 0); | ||||
| col = uiLayoutColumnWithHeading(layout, false, IFACE_("Group Remove")); | col = uiLayoutColumnWithHeading(layout, false, IFACE_("Group Remove")); | ||||
| row = uiLayoutRow(col, true); | row = uiLayoutRow(col, true); | ||||
| uiLayoutSetPropDecorate(row, false); | uiLayoutSetPropDecorate(row, false); | ||||
| sub = uiLayoutRow(row, true); | sub = uiLayoutRow(row, true); | ||||
| uiItemR(sub, ptr, "use_remove", 0, "", ICON_NONE); | uiItemR(sub, ptr, "use_remove", 0, "", ICON_NONE); | ||||
| sub = uiLayoutRow(sub, true); | sub = uiLayoutRow(sub, true); | ||||
| uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_remove")); | uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_remove")); | ||||
| uiLayoutSetPropSep(sub, false); | uiLayoutSetPropSep(sub, false); | ||||
| uiItemR(sub, ptr, "remove_threshold", UI_ITEM_R_SLIDER, "Threshold", ICON_NONE); | uiItemR(sub, ptr, "remove_threshold", UI_ITEM_R_SLIDER, IFACE_("Threshold"), ICON_NONE); | ||||
| uiItemDecoratorR(row, ptr, "remove_threshold", 0); | uiItemDecoratorR(row, ptr, "remove_threshold", 0); | ||||
| uiItemR(layout, ptr, "normalize", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "normalize", 0, NULL, ICON_NONE); | ||||
| modifier_panel_end(layout, ptr); | modifier_panel_end(layout, ptr); | ||||
| } | } | ||||
| static void falloff_panel_draw(const bContext *UNUSED(C), Panel *panel) | static void falloff_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| ▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines | |||||