diff options
author | Joshua Leung <aligorith@gmail.com> | 2006-12-15 02:20:47 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2006-12-15 02:20:47 +0300 |
commit | 1ed773c71c50594d58735eccbc09fe4de7e10acf (patch) | |
tree | 4eb0b7a712be11410733bcae39f662ea16ad4d27 /source/blender/src/editconstraint.c | |
parent | 4935f0b23149fc2b78d334424c86bda968a74d0d (diff) |
== Add Constraints Menu ==
Now, it is possible to add action constraints to the last selected bone
from the Add Constraint Menu (Ctrl Alt C)
Diffstat (limited to 'source/blender/src/editconstraint.c')
-rw-r--r-- | source/blender/src/editconstraint.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/src/editconstraint.c b/source/blender/src/editconstraint.c index 2ee40396061..b51b05bf10d 100644 --- a/source/blender/src/editconstraint.c +++ b/source/blender/src/editconstraint.c @@ -659,11 +659,11 @@ void add_constraint(int only_IK) else { if(pchanact) { if(pchansel) - nr= pupmenu("Add Constraint to Active Bone%t|Copy Location%x1|Copy Rotation%x2|Copy Scale%x8|Limit Location%x13|Limit Rotation%x14|Limit Scale%x15|Track To%x3|Floor%x4|Locked Track%x5|Stretch To%x7"); + nr= pupmenu("Add Constraint to Active Bone%t|Copy Location%x1|Copy Rotation%x2|Copy Scale%x8|Limit Location%x13|Limit Rotation%x14|Limit Scale%x15|Track To%x3|Floor%x4|Locked Track%x5|Stretch To%x7|Action%x16"); else if(obsel && obsel->type==OB_CURVE) - nr= pupmenu("Add Constraint to Active Object%t|Copy Location%x1|Copy Rotation%x2|Copy Scale%x8|Limit Location%x13|Limit Rotation%x14|Limit Scale%x15|Track To%x3|Floor%x4|Locked Track%x5|Follow Path%x6|Stretch To%x7"); + nr= pupmenu("Add Constraint to Active Object%t|Copy Location%x1|Copy Rotation%x2|Copy Scale%x8|Limit Location%x13|Limit Rotation%x14|Limit Scale%x15|Track To%x3|Floor%x4|Locked Track%x5|Follow Path%x6|Stretch To%x7|Action%x16"); else if(obsel) - nr= pupmenu("Add Constraint to Active Object%t|Copy Location%x1|Copy Rotation%x2|Copy Scale%x8|Limit Location%x13|Limit Rotation%x14|Limit Scale%x15|Track To%x3|Floor%x4|Locked Track%x5|Stretch To%x7"); + nr= pupmenu("Add Constraint to Active Object%t|Copy Location%x1|Copy Rotation%x2|Copy Scale%x8|Limit Location%x13|Limit Rotation%x14|Limit Scale%x15|Track To%x3|Floor%x4|Locked Track%x5|Stretch To%x7|Action%x16"); else nr= pupmenu("Add Constraint to New Empty Object%t|Copy Location%x1|Copy Rotation%x2|Copy Scale%x8|Limit Location%x13|Limit Rotation%x14|Limit Scale%x15|Track To%x3|Floor%x4|Locked Track%x5|Stretch To%x7"); } @@ -727,6 +727,7 @@ void add_constraint(int only_IK) else if(nr==13) con = add_new_constraint(CONSTRAINT_TYPE_LOCLIMIT); else if(nr==14) con = add_new_constraint(CONSTRAINT_TYPE_ROTLIMIT); else if(nr==15) con = add_new_constraint(CONSTRAINT_TYPE_SIZELIMIT); + else if(nr==16) con = add_new_constraint(CONSTRAINT_TYPE_ACTION); if(con==NULL) return; /* paranoia */ |