Code Cleanup: unused defines & style

This commit is contained in:
2013-12-30 10:53:09 +11:00
parent 889d77e6f6
commit 24c807ffd4
3 changed files with 7 additions and 7 deletions

View File

@@ -314,7 +314,7 @@ static rbCollisionShape *rigidbody_get_shape_trimesh_from_mesh(Object *ob)
/* init mesh data for collision shape */
mdata = RB_trimesh_data_new(tottris, totvert);
RB_trimesh_add_vertices(mdata, (float*)mvert, totvert, sizeof(MVert));
RB_trimesh_add_vertices(mdata, (float *)mvert, totvert, sizeof(MVert));
/* loop over all faces, adding them as triangles to the collision shape
* (so for some faces, more than triangle will get added)
@@ -482,7 +482,7 @@ static void rigidbody_validate_sim_object(RigidBodyWorld *rbw, Object *ob, bool
rigidbody_validate_sim_shape(ob, true);
if (rbo->physics_object && rebuild == false) {
RB_dworld_remove_body(rbw->physics_world, rbo->physics_object);
RB_dworld_remove_body(rbw->physics_world, rbo->physics_object);
}
if (!rbo->physics_object || rebuild) {
/* remove rigid body if it already exists before creating a new one */
@@ -555,7 +555,7 @@ static void rigidbody_validate_sim_constraint(RigidBodyWorld *rbw, Object *ob, b
}
if (rbc->physics_constraint && rebuild == false) {
RB_dworld_remove_constraint(rbw->physics_world, rbc->physics_constraint);
RB_dworld_remove_constraint(rbw->physics_world, rbc->physics_constraint);
}
if (rbc->physics_constraint == NULL || rebuild) {
rbRigidBody *rb1 = rbc->ob1->rigidbody_object->physics_object;
@@ -1035,7 +1035,7 @@ static void rigidbody_update_sim_ob(Scene *scene, RigidBodyWorld *rbw, Object *o
int totvert = dm->getNumVerts(dm);
BoundBox *bb = BKE_object_boundbox_get(ob);
RB_shape_trimesh_update(rbo->physics_shape, (float*)mvert, totvert, sizeof(MVert), bb->vec[0], bb->vec[6]);
RB_shape_trimesh_update(rbo->physics_shape, (float *)mvert, totvert, sizeof(MVert), bb->vec[0], bb->vec[6]);
}
}

View File

@@ -1474,7 +1474,7 @@ static void write_modifiers(WriteData *wd, ListBase *modbase)
if (wmd->cmap_curve)
write_curvemapping(wd, wmd->cmap_curve);
}
else if(md->type==eModifierType_LaplacianDeform) {
else if (md->type==eModifierType_LaplacianDeform) {
LaplacianDeformModifierData *lmd = (LaplacianDeformModifierData*) md;
writedata(wd, DATA, sizeof(float)*lmd->total_verts * 3, lmd->vertexco);

View File

@@ -71,9 +71,9 @@ extern "C" {
bItasc DefIKParam;
// in case of animation mode, feedback and timestep is fixed
#define ANIM_TIMESTEP 1.0
// #define ANIM_TIMESTEP 1.0
#define ANIM_FEEDBACK 0.8
#define ANIM_QMAX 0.52
// #define ANIM_QMAX 0.52
// Structure pointed by bPose.ikdata