Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_boolean.c
| Show First 20 Lines • Show All 356 Lines • ▼ Show 20 Lines | static void requiredDataMask(Object *UNUSED(ob), | ||||
| ModifierData *UNUSED(md), | ModifierData *UNUSED(md), | ||||
| CustomData_MeshMasks *r_cddata_masks) | CustomData_MeshMasks *r_cddata_masks) | ||||
| { | { | ||||
| r_cddata_masks->vmask |= CD_MASK_MDEFORMVERT; | r_cddata_masks->vmask |= CD_MASK_MDEFORMVERT; | ||||
| r_cddata_masks->emask |= CD_MASK_MEDGE; | r_cddata_masks->emask |= CD_MASK_MEDGE; | ||||
| r_cddata_masks->fmask |= CD_MASK_MTFACE; | r_cddata_masks->fmask |= CD_MASK_MTFACE; | ||||
| } | } | ||||
| static void panel_draw(const bContext *C, Panel *panel) | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA ptr; | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, NULL); | ||||
| modifier_panel_get_property_pointers(C, panel, NULL, &ptr); | |||||
| uiItemR(layout, &ptr, "operation", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | uiItemR(layout, ptr, "operation", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiItemR(layout, &ptr, "object", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "object", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "double_threshold", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "double_threshold", 0, NULL, ICON_NONE); | ||||
| if (G.debug) { | if (G.debug) { | ||||
| uiLayout *col = uiLayoutColumn(layout, true); | uiLayout *col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, &ptr, "debug_options", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "debug_options", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| 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_Boolean, panel_draw); | modifier_panel_register(region_type, eModifierType_Boolean, panel_draw); | ||||
| } | } | ||||
| ModifierTypeInfo modifierType_Boolean = { | ModifierTypeInfo modifierType_Boolean = { | ||||
| Show All 32 Lines | |||||