Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergej Reich <sergej.reich@googlemail.com>2013-02-16 23:24:52 +0400
committerSergej Reich <sergej.reich@googlemail.com>2013-02-16 23:24:52 +0400
commit500bc0c5e948079bd0ab7bd2c96a78a1451964f1 (patch)
treeb7d7cdc4d0512f55be354ccb31469347964b5168 /source/blender/blenkernel/intern/scene.c
parent86f791676700dc317a12cb94b2c02fcfd972260a (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r--source/blender/blenkernel/intern/scene.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c
index 9e83c11a021..6dba03ce22d 100644
--- a/source/blender/blenkernel/intern/scene.c
+++ b/source/blender/blenkernel/intern/scene.c
@@ -173,6 +173,7 @@ Scene *BKE_scene_copy(Scene *sce, int type)
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));