Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_surface.c
| Show All 21 Lines | |||||
| */ | */ | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.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_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "BKE_bvhutils.h" | #include "BKE_bvhutils.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| Show All 16 Lines | |||||
| #include "BLO_read_write.h" | #include "BLO_read_write.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| static void initData(ModifierData *md) | static void initData(ModifierData *md) | ||||
| { | { | ||||
| SurfaceModifierData *surmd = (SurfaceModifierData *)md; | SurfaceModifierData *surmd = (SurfaceModifierData *)md; | ||||
| surmd->bvhtree = NULL; | BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(surmd, modifier)); | ||||
| surmd->mesh = NULL; | |||||
| surmd->x = NULL; | MEMCPY_STRUCT_AFTER(surmd, DNA_struct_default_get(SurfaceModifierData), modifier); | ||||
| surmd->v = NULL; | |||||
| } | } | ||||
| static void copyData(const ModifierData *md_src, ModifierData *md_dst, const int flag) | static void copyData(const ModifierData *md_src, ModifierData *md_dst, const int flag) | ||||
| { | { | ||||
| SurfaceModifierData *surmd_dst = (SurfaceModifierData *)md_dst; | SurfaceModifierData *surmd_dst = (SurfaceModifierData *)md_dst; | ||||
| BKE_modifier_copydata_generic(md_src, md_dst, flag); | BKE_modifier_copydata_generic(md_src, md_dst, flag); | ||||
| ▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines | |||||