[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54598] trunk/blender/source/blender/ blenkernel/intern/scene.c: rigidbody: Fix [#34277] Deleting a copied bullet scene crashes blender.

Sergej Reich sergej.reich at googlemail.com
Sat Feb 16 20:24:52 CET 2013


Revision: 54598
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54598
Author:   sergof
Date:     2013-02-16 19:24:52 +0000 (Sat, 16 Feb 2013)
Log Message:
-----------
rigidbody: Fix [#34277] Deleting a copied bullet scene crashes blender.

Copying scenes didn't handle rigid body worlds previously.

Since we use groups to keep track of objecs in the rigid body sim it's
tricky to do the right thing here since groups aren't duplicated.
One option would be to create new groups and add the duplicated objects
into those but that has other drawbacks.
So the rigid body world isn't copied for now.

TODO find a better way of handling this.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/scene.c

Modified: trunk/blender/source/blender/blenkernel/intern/scene.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/scene.c	2013-02-16 19:24:50 UTC (rev 54597)
+++ trunk/blender/source/blender/blenkernel/intern/scene.c	2013-02-16 19:24:52 UTC (rev 54598)
@@ -173,6 +173,7 @@
 		scen->obedit = NULL;
 		scen->stats = NULL;
 		scen->fps_info = NULL;
+		scen->rigidbody_world = NULL; /* RB_TODO figure out a way of copying the rigid body world */
 
 		BLI_duplicatelist(&(scen->markers), &(sce->markers));
 		BLI_duplicatelist(&(scen->transform_spaces), &(sce->transform_spaces));




More information about the Bf-blender-cvs mailing list