One Constraint function missed the new MINMAX (floor) type, caused the
authorTon Roosendaal <ton@blender.org>
Sun, 23 Oct 2005 16:13:04 +0000 (16:13 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 23 Oct 2005 16:13:04 +0000 (16:13 +0000)
last commit (add constraint menu) to fail on adding floor constraints.

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;
                        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;
        }
 }
 
        }
 }