diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-23 20:13:04 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-23 20:13:04 +0400 |
commit | d004754d6b5da6a5fdb22f6a55e772c37ba17eea (patch) | |
tree | a98b6905e47e2ee358344bea3a6d7be8dd63cf42 /source | |
parent | d4f47002b835fb299fab05425456d34a8d24807e (diff) |
One Constraint function missed the new MINMAX (floor) type, caused the
last commit (add constraint menu) to fail on adding floor constraints.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 48d9db1a516..82ac349a657 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -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; } } |