== Transformation Constraint ==
[blender.git] / source / blender / blenloader / intern / readfile.c
index b8323cbed81b3853172f05204162de50874dfed2..e5fdebae89d72fdb4eda102cd95b371eb168adfe 100644 (file)
@@ -1712,6 +1712,13 @@ static void lib_link_constraints(FileData *fd, ID *id, ListBase *conlist)
                                data->tar = newlibadr(fd, id->lib, data->tar);
                        }
                        break;
+               case CONSTRAINT_TYPE_TRANSFORM:
+                       {
+                               bTransformConstraint *data;
+                               data= ((bTransformConstraint*)con->data);
+                               data->tar = newlibadr(fd, id->lib, data->tar);
+                       }
+                       break;
                case CONSTRAINT_TYPE_NULL:
                        break;
                }
@@ -7095,6 +7102,12 @@ static void expand_constraints(FileData *fd, Main *mainvar, ListBase *lb)
                                expand_doit(fd, mainvar, data->tar);
                        }
                        break;
+               case CONSTRAINT_TYPE_TRANSFORM:
+                       {
+                               bTransformConstraint *data = (bTransformConstraint*)curcon->data;
+                               expand_doit(fd, mainvar, data->tar);
+                       }
+                       break;
                default:
                        break;
                }