Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_boolean.c
| Show All 27 Lines | |||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_alloca.h" | #include "BLI_alloca.h" | ||||
| #include "BLI_math_geom.h" | #include "BLI_math_geom.h" | ||||
| #include "BLI_math_matrix.h" | #include "BLI_math_matrix.h" | ||||
| #include "BLT_translation.h" | #include "BLT_translation.h" | ||||
| #include "DNA_defaults.h" | |||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_meshdata_types.h" | #include "DNA_meshdata_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_global.h" /* only to check G.debug */ | #include "BKE_global.h" /* only to check G.debug */ | ||||
| #include "BKE_lib_id.h" | #include "BKE_lib_id.h" | ||||
| Show All 24 Lines | |||||
| # include "PIL_time.h" | # include "PIL_time.h" | ||||
| # include "PIL_time_utildefines.h" | # include "PIL_time_utildefines.h" | ||||
| #endif | #endif | ||||
| static void initData(ModifierData *md) | static void initData(ModifierData *md) | ||||
| { | { | ||||
| BooleanModifierData *bmd = (BooleanModifierData *)md; | BooleanModifierData *bmd = (BooleanModifierData *)md; | ||||
| bmd->double_threshold = 1e-6f; | BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(bmd, modifier)); | ||||
| bmd->operation = eBooleanModifierOp_Difference; | |||||
| MEMCPY_STRUCT_AFTER(bmd, DNA_struct_default_get(BooleanModifierData), modifier); | |||||
| } | } | ||||
| static bool isDisabled(const struct Scene *UNUSED(scene), | static bool isDisabled(const struct Scene *UNUSED(scene), | ||||
| ModifierData *md, | ModifierData *md, | ||||
| bool UNUSED(useRenderParams)) | bool UNUSED(useRenderParams)) | ||||
| { | { | ||||
| BooleanModifierData *bmd = (BooleanModifierData *)md; | BooleanModifierData *bmd = (BooleanModifierData *)md; | ||||
| ▲ Show 20 Lines • Show All 339 Lines • Show Last 20 Lines | |||||