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:
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 0cd473fd74d..62f2e1b52cc 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4926,6 +4926,12 @@ static void direct_link_object(FileData *fd, Object *ob)
if (ob->rigidbody_object) {
RigidBodyOb *rbo = ob->rigidbody_object;
+ rbo->effector_weights = newdataadr(fd, rbo->effector_weights);
+ if (rbo->effector_weights)
+ rbo->effector_weights->group = newlibadr(fd, ob->id.lib, rbo->effector_weights->group);
+ else
+ rbo->effector_weights = BKE_add_effector_weights(NULL);
+
/* must nullify the references to physics sim objects, since they no-longer exist
* (and will need to be recalculated)
*/