rigidbody: Relink constraints when duplicating objects
authorSergej Reich <sergej.reich@googlemail.com>
Sat, 9 Feb 2013 10:04:25 +0000 (10:04 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Sat, 9 Feb 2013 10:04:25 +0000 (10:04 +0000)
commit6738c941ffc68f25f93eb219c4c3c3ddc3cf7c4c
tree46717f287b900b0612dc191a3c3c0c152654970f
parent777fb934a7e1645a4df76f40b1d1f1f712c74c62
rigidbody: Relink constraints when duplicating objects

This will preserve constraint <-> rigid body realationships so
constraint setups aren't broken after duplication.

Based on a patch by Brandon Hechinger (jaggz), thanks.
source/blender/blenkernel/BKE_rigidbody.h
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/rigidbody.c