Bugfix for endian bug in mdef file writing.

Also an unrelated warning fix.
This commit is contained in:
2007-11-13 18:50:57 +00:00
parent ec686f581c
commit 2f76b49bc1
2 changed files with 3 additions and 4 deletions

View 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; }

View 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);
}
}