Bugfix for endian bug in mdef file writing.
Also an unrelated warning fix.
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user