svn merge -r 12347:12382 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / blenloader / intern / writefile.c
index 3066f61717439d503031ab7abf35138489685778..ba4cbd1b9506e0abded49a6e160611ca7e230127 100644 (file)
@@ -711,7 +711,12 @@ static void write_constraints(WriteData *wd, ListBase *conlist)
                        switch (con->type) {
                                case CONSTRAINT_TYPE_PYTHON:
                                {
-                                       bPythonConstraint *data = (bPythonConstraint*) con->data;
+                                       bPythonConstraint *data = (bPythonConstraint *)con->data;
+                                       bConstraintTarget *ct;
+                                       
+                                       /* write targets */
+                                       for (ct= data->targets.first; ct; ct= ct->next)
+                                               writestruct(wd, DATA, "bConstraintTarget", 1, ct);
                                        
                                        /* Write ID Properties -- and copy this comment EXACTLY for easy finding
                                         of library blocks that implement this.*/