diff options
author | Jacques Lucke <jacques@blender.org> | 2020-03-08 14:39:19 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-03-08 14:39:19 +0300 |
commit | e003c31ca09c3a7e02641597ee92316eb7d04540 (patch) | |
tree | 9a75878e6fb400199e36063b755ec9b2772783ea | |
parent | 429e85c33a16adf7a80b258076d0cf148f84c656 (diff) |
cleanupsblenloader-api
-rw-r--r-- | source/blender/modifiers/intern/MOD_hook.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_hook.c b/source/blender/modifiers/intern/MOD_hook.c index 823feb4ce06..e64a142bbd9 100644 --- a/source/blender/modifiers/intern/MOD_hook.c +++ b/source/blender/modifiers/intern/MOD_hook.c @@ -24,7 +24,6 @@ #include "BLI_utildefines.h" #include "BLI_math.h" -#include "BLI_endian_switch.h" #include "DNA_mesh_types.h" #include "DNA_meshdata_types.h" @@ -129,17 +128,18 @@ static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphConte static void bloWrite(BloWriter *writer, const ModifierData *md) { HookModifierData *hmd = (HookModifierData *)md; + + BLO_write_int32_array(writer, hmd->totindex, hmd->indexar); if (hmd->curfalloff) { BKE_curvemapping_blo_write(writer, hmd->curfalloff); } - BLO_write_int32_array(writer, hmd->totindex, hmd->indexar); } static void bloRead(BloReader *reader, ModifierData *md) { HookModifierData *hmd = (HookModifierData *)md; - BLO_read_int32_array(reader, hmd->totindex, hmd->indexar); + BLO_read_int32_array(reader, hmd->totindex, hmd->indexar); BLO_read_data_address(reader, hmd->curfalloff); if (hmd->curfalloff) { BKE_curvemapping_blo_read(reader, hmd->curfalloff); |