Fix #34806: rigid body world settings were not copied with a full scene copy.
Now copying a scene will also duplicate groups that consist entirely of objects that are duplicated with the scene. The rigid body world will then also pointers to these new groups.
This commit is contained in:
@@ -304,8 +304,9 @@ static void template_id_cb(bContext *C, void *arg_litem, void *arg_event)
|
||||
|
||||
/* make copy */
|
||||
if (do_scene_obj) {
|
||||
Main *bmain = CTX_data_main(C);
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
ED_object_single_user(scene, (struct Object *)id);
|
||||
ED_object_single_user(bmain, scene, (struct Object *)id);
|
||||
WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user