Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weighted_normal.c
| Show First 20 Lines • Show All 708 Lines • ▼ Show 20 Lines | static void requiredDataMask(Object *UNUSED(ob), | ||||
| } | } | ||||
| } | } | ||||
| static bool dependsOnNormals(ModifierData *UNUSED(md)) | static bool dependsOnNormals(ModifierData *UNUSED(md)) | ||||
| { | { | ||||
| return true; | return true; | ||||
| } | } | ||||
| static void panel_draw(const bContext *C, Panel *panel) | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *col; | uiLayout *col; | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA ptr; | |||||
| PointerRNA ob_ptr; | PointerRNA ob_ptr; | ||||
| modifier_panel_get_property_pointers(C, panel, &ob_ptr, &ptr); | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiItemR(layout, &ptr, "mode", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "mode", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "weight", 0, IFACE_("Weight"), ICON_NONE); | uiItemR(layout, ptr, "weight", 0, IFACE_("Weight"), ICON_NONE); | ||||
| uiItemR(layout, &ptr, "thresh", 0, IFACE_("Threshold"), ICON_NONE); | uiItemR(layout, ptr, "thresh", 0, IFACE_("Threshold"), ICON_NONE); | ||||
| col = uiLayoutColumn(layout, false); | col = uiLayoutColumn(layout, false); | ||||
| uiItemR(col, &ptr, "keep_sharp", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "keep_sharp", 0, NULL, ICON_NONE); | ||||
| uiItemR(col, &ptr, "face_influence", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "face_influence", 0, NULL, ICON_NONE); | ||||
| modifier_vgroup_ui(layout, &ptr, &ob_ptr, "vertex_group", "invert_vertex_group", NULL); | modifier_vgroup_ui(layout, ptr, &ob_ptr, "vertex_group", "invert_vertex_group", NULL); | ||||
| modifier_panel_end(layout, &ptr); | modifier_panel_end(layout, ptr); | ||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| modifier_panel_register(region_type, eModifierType_WeightedNormal, panel_draw); | modifier_panel_register(region_type, eModifierType_WeightedNormal, panel_draw); | ||||
| } | } | ||||
| ModifierTypeInfo modifierType_WeightedNormal = { | ModifierTypeInfo modifierType_WeightedNormal = { | ||||
| Show All 33 Lines | |||||