Give RigidBodyWorld collection a fake user

This prevents it from disappearing when the blend file is saved.
This commit is contained in:
Sybren A. Stüvel
2018-06-14 17:34:01 +02:00
parent 8dc883052c
commit a8e8808d58

View File

@@ -110,6 +110,7 @@ bool ED_rigidbody_object_add(Main *bmain, Scene *scene, Object *ob, int type, Re
}
if (rbw->group == NULL) {
rbw->group = BKE_collection_add(bmain, NULL, "RigidBodyWorld");
id_fake_user_set(&rbw->group->id);
}
/* make rigidbody object settings */