[Bf-blender-cvs] [e003c31ca09] blenloader-api: cleanups
Jacques Lucke
noreply at git.blender.org
Sun Mar 8 12:39:29 CET 2020
Commit: e003c31ca09c3a7e02641597ee92316eb7d04540
Author: Jacques Lucke
Date: Sun Mar 8 12:39:19 2020 +0100
Branches: blenloader-api
https://developer.blender.org/rBe003c31ca09c3a7e02641597ee92316eb7d04540
cleanups
===================================================================
M source/blender/modifiers/intern/MOD_hook.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list