From d407aeecc7f2d45422ff14aea88276edf244aa7a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 3 Apr 2013 11:28:42 +0000 Subject: code cleanup: use more (blender) conventional naming for group functions. also change dump_rna2xml.py to dump bpy.data by default. --- source/blender/editors/physics/rigidbody_constraint.c | 6 +++--- source/blender/editors/physics/rigidbody_object.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/editors/physics') diff --git a/source/blender/editors/physics/rigidbody_constraint.c b/source/blender/editors/physics/rigidbody_constraint.c index b3f92d3de46..d38ffa491e2 100644 --- a/source/blender/editors/physics/rigidbody_constraint.c +++ b/source/blender/editors/physics/rigidbody_constraint.c @@ -88,14 +88,14 @@ void ED_rigidbody_con_add(wmOperator *op, Scene *scene, Object *ob, int type) } /* create constraint group if it doesn't already exits */ if (rbw->constraints == NULL) { - rbw->constraints = add_group(G.main, "RigidBodyConstraints"); + rbw->constraints = BKE_group_add(G.main, "RigidBodyConstraints"); } /* make rigidbody constraint settings */ ob->rigidbody_constraint = BKE_rigidbody_create_constraint(scene, ob, type); ob->rigidbody_constraint->flag |= RBC_FLAG_NEEDS_VALIDATE; /* add constraint to rigid body constraint group */ - add_to_group(rbw->constraints, ob, scene, NULL); + BKE_group_object_add(rbw->constraints, ob, scene, NULL); DAG_id_tag_update(&ob->id, OB_RECALC_OB); } @@ -106,7 +106,7 @@ void ED_rigidbody_con_remove(Scene *scene, Object *ob) BKE_rigidbody_remove_constraint(scene, ob); if (rbw) - rem_from_group(rbw->constraints, ob, scene, NULL); + BKE_group_object_unlink(rbw->constraints, ob, scene, NULL); DAG_id_tag_update(&ob->id, OB_RECALC_OB); } diff --git a/source/blender/editors/physics/rigidbody_object.c b/source/blender/editors/physics/rigidbody_object.c index 9c03c6173a5..9f981256a31 100644 --- a/source/blender/editors/physics/rigidbody_object.c +++ b/source/blender/editors/physics/rigidbody_object.c @@ -111,7 +111,7 @@ void ED_rigidbody_ob_add(wmOperator *op, Scene *scene, Object *ob, int type) scene->rigidbody_world = rbw; } if (rbw->group == NULL) { - rbw->group = add_group(G.main, "RigidBodyWorld"); + rbw->group = BKE_group_add(G.main, "RigidBodyWorld"); } /* make rigidbody object settings */ @@ -122,7 +122,7 @@ void ED_rigidbody_ob_add(wmOperator *op, Scene *scene, Object *ob, int type) ob->rigidbody_object->flag |= RBO_FLAG_NEEDS_VALIDATE; /* add object to rigid body group */ - add_to_group(rbw->group, ob, scene, NULL); + BKE_group_object_add(rbw->group, ob, scene, NULL); DAG_id_tag_update(&ob->id, OB_RECALC_OB); } @@ -133,7 +133,7 @@ void ED_rigidbody_ob_remove(Scene *scene, Object *ob) BKE_rigidbody_remove_object(scene, ob); if (rbw) - rem_from_group(rbw->group, ob, scene, NULL); + BKE_group_object_unlink(rbw->group, ob, scene, NULL); DAG_id_tag_update(&ob->id, OB_RECALC_OB); } -- cgit v1.2.3