diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-05-07 15:59:43 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-05-07 15:59:43 +0400 |
commit | 147cbe93c243db447ab1e5a5585a8e987c25df74 (patch) | |
tree | 30d9a2779e798e020b79a34cc73d9f7ea572242c /source/blender/src/editipo_lib.c | |
parent | c006be19296cb434054b257ffe2b556470fd261c (diff) |
== Action Editor - Bugfix #6660 ==
When trying to expand the IPO-curves for Shapekey Action Channels, Blender crashed due to that being a previously un-handled case.
For some reason, the names of IPO curve channels are still not drawing on some machines.
I've also disabled the display of shapekey channels when there is an action as the two used to overlap and muck up the drawing matrices of each other.
Diffstat (limited to 'source/blender/src/editipo_lib.c')
-rw-r--r-- | source/blender/src/editipo_lib.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/src/editipo_lib.c b/source/blender/src/editipo_lib.c index 8707e5dd12c..96be44e1234 100644 --- a/source/blender/src/editipo_lib.c +++ b/source/blender/src/editipo_lib.c @@ -27,6 +27,8 @@ /* ********** General calls (minimal dependencies) for editing Ipos in Blender ************* */ +#include <stdio.h> + #include "BLI_blenlib.h" #include "BLI_arithb.h" @@ -132,10 +134,20 @@ int geticon_ipo_blocktype(short blocktype) char *getname_ipocurve(IpoCurve *icu) { switch (icu->blocktype) { - case ID_OB: - return getname_ob_ei(icu->adrcode, 0); /* dummy 2nd arg */ + case ID_OB: + return getname_ob_ei(icu->adrcode, 0); /* dummy 2nd arg */ case ID_PO: return getname_ac_ei(icu->adrcode); + case ID_KE: + { + /* quick 'hack' - must find a better solution to this + * although shapekey ipo-curves can have names, + * we don't have access to that info yet. + */ + static char name[32]; + sprintf(name, "Key %d", icu->adrcode); + return name; + } default: /* fixme - add all of the other types! */ return NULL; |