rigidbody: Improve add/remove operators
authorSergej Reich <sergej.reich@googlemail.com>
Fri, 25 Jan 2013 06:26:38 +0000 (06:26 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Fri, 25 Jan 2013 06:26:38 +0000 (06:26 +0000)
commit204ec89bff751092f0ca97320456e49107b6e15f
tree2e69d290d2d6374045f3e702b9b64d37187a5f47
parent5c8a978d1f3d7d887c2ecccfdfc5a198ac0d37d1
rigidbody: Improve add/remove operators

Now all add/remove operators for rigid body objects and constraints
automatically add objects to the appropriate groups and create groups if they
don't exist yet.

This makes handling rigid bodies easier but doesn't take away functionality.
If users want to handle groups manually they just need to create them before
adding any objects.

The previous behaviour was confusing and was even considered to be a bug since
clicking on rigid body in the physics tab seemed to do nothing.
release/scripts/startup/bl_operators/rigidbody.py
source/blender/editors/physics/physics_intern.h
source/blender/editors/physics/physics_ops.c
source/blender/editors/physics/rigidbody_constraint.c
source/blender/editors/physics/rigidbody_object.c