One Constraint function missed the new MINMAX (floor) type, caused the
[blender.git] / source / blender / blenkernel / intern / constraint.c
index 48d9db1a51653ddab3efd0890da92d9bdab5f5b9..82ac349a657cc648fc066ac477b587c7d27ca886 100644 (file)
@@ -448,6 +448,13 @@ void set_constraint_target(bConstraint *con, Object *ob, char *subtarget)
                        if(subtarget) BLI_strncpy(data->subtarget, subtarget, 32);
                }
                        break;
+               case CONSTRAINT_TYPE_MINMAX:
+               {
+                       bMinMaxConstraint *data = (bMinMaxConstraint*)con->data;
+                       data->tar= ob;
+                       if(subtarget) BLI_strncpy(data->subtarget, subtarget, 32);
+               }
+                       break;
        }
 }