Reserved some Bullet 2.x constraint data.
[blender.git] / source / blender / blenloader / intern / readfile.c
index c78ad8d23d16f15efc2011ae7aa3d50356cd851a..d33fa6334b43ea2a23127ac5de8568bd0569eb41 100644 (file)
@@ -1690,6 +1690,13 @@ static void lib_link_constraints(FileData *fd, ID *id, ListBase *conlist)
                                data= ((bSizeLimitConstraint*)con->data);
                        };
                        break;
+               case CONSTRAINT_TYPE_RIGIDBODYJOINT:
+                       {
+                               bRigidBodyJointConstraint *data;
+                               data= ((bRigidBodyJointConstraint*)con->data);
+                               data->tar = newlibadr(fd, id->lib, data->tar);
+                       };
+                       break;
 
                case CONSTRAINT_TYPE_NULL:
                        break;
@@ -6589,6 +6596,12 @@ static void expand_constraints(FileData *fd, Main *mainvar, ListBase *lb)
                                expand_doit(fd, mainvar, data->tar);
                                break;
                        }
+               case CONSTRAINT_TYPE_RIGIDBODYJOINT:
+                       {
+                               bRigidBodyJointConstraint *data = (bRigidBodyJointConstraint*)curcon->data;
+                               expand_doit(fd, mainvar, data->tar);
+                               break;
+                       }
                case CONSTRAINT_TYPE_NULL:
                        break;
                default: