Bugfix for endian bug in mdef file writing.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 13 Nov 2007 18:50:57 +0000 (18:50 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 13 Nov 2007 18:50:57 +0000 (18:50 +0000)
Also an unrelated warning fix.

source/blender/blenkernel/bad_level_call_stubs/stubs.c
source/blender/blenloader/intern/writefile.c

index d1700fe49ddfe2b53bad051f5d5c5d85c20d922c..a3925dfaa9a2e07853bd0d86afcdcc1f9e31a518 100644 (file)
@@ -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; }
 
index 1aa47960badebea465c41bd34a8ddfd9fb990c1a..1c5d520d07574180753ab2a5226658c69141fe46 100644 (file)
@@ -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);
                }
        }