diff options
author | Ton Roosendaal <ton@blender.org> | 2007-11-28 15:11:06 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-11-28 15:11:06 +0300 |
commit | 36f7da70466603643ec28b47e4ec0b082fa5226a (patch) | |
tree | a93b182bc592a579fa53ee494ded494449aee1a1 /source/blender/blenloader | |
parent | bb77ea8df5f016399e50bce5ef8b67d2cac89a28 (diff) |
Tiny feature, but loadsa code, and big impact for the Blender riggers:
-> Constraint Influence Ipo now can be local, linked to constraint itself
You enable this in the IpoWindow header, with the Action icon to the left
of the Ipo Type menu. The button tooltips give the clue as well.
Tech note: the Ipo now can get directly linked to a constraint, and is
being called during regular pose constraint solving.
Actions (and drivers in actions) are being calculated *before* pose
constraint solving. Result of actions then is written in bones, which
then solves the entire pose.
This means you can have a driver on both the constraint, as on the action
channel for the constraint! Not that I'm going to debug that easily :)
Additional fix: Joshua added a copy/paste IpoCurve feature, but he broke
the functionality to be able to paste in an empty ipo channel. That now
works again
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 6fdf090b163..ae6a2749269 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -1619,7 +1619,9 @@ static void lib_link_constraints(FileData *fd, ID *id, ListBase *conlist) if(con->data==NULL) { con->type= CONSTRAINT_TYPE_NULL; } - + /* own ipo, all constraints have it */ + con->ipo= newlibadr(fd, id->lib, con->ipo); + switch (con->type) { case CONSTRAINT_TYPE_PYTHON: { |