diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/bad_level_call_stubs/stubs.c | 2 | ||||
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/blenkernel/bad_level_call_stubs/stubs.c b/source/blender/blenkernel/bad_level_call_stubs/stubs.c index d1700fe49dd..a3925dfaa9a 100644 --- a/source/blender/blenkernel/bad_level_call_stubs/stubs.c +++ b/source/blender/blenkernel/bad_level_call_stubs/stubs.c @@ -209,7 +209,7 @@ void IK_FreeSolver(IK_Solver *solver) {}; void IK_SolverAddGoal(IK_Solver *solver, IK_Segment *tip, float goal[3], float weight) {} void IK_SolverAddGoalOrientation(IK_Solver *solver, IK_Segment *tip, float goal[][3], float weight) {} void IK_SolverSetPoleVectorConstraint(IK_Solver *solver, IK_Segment *tip, float goal[3], float polegoal[3], float poleangle, int getangle) {} -float IK_SolverGetPoleAngle(IK_Solver *solver) {} +float IK_SolverGetPoleAngle(IK_Solver *solver) { return 0.0f; } int IK_Solve(IK_Solver *solver, float tolerance, int max_iterations) { return 0; } diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 1aa47960bad..1c5d520d075 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -793,9 +793,8 @@ static void write_modifiers(WriteData *wd, ListBase *modbase) mmd->bindweights); writedata(wd, DATA, sizeof(float)*3*mmd->totcagevert, mmd->bindcos); - writedata(wd, DATA, sizeof(MDefCell)*size*size*size, mmd->dyngrid); - writedata(wd, DATA, sizeof(MDefInfluence)*mmd->totinfluence, - mmd->dyninfluences); + writestruct(wd, DATA, "MDefCell", size*size*size, mmd->dyngrid); + writestruct(wd, DATA, "MDefInfluence", mmd->totinfluence, mmd->dyninfluences); writedata(wd, DATA, sizeof(int)*mmd->totvert, mmd->dynverts); } } |