diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-03-06 15:13:32 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-03-06 15:13:32 +0300 |
commit | 33efa9eeb63db672d9da97b68718aefb14b98f64 (patch) | |
tree | aa3e0604a33ff8a498184615e52a607bba7241a6 /source/blender/editors/animation | |
parent | 29fafab10702d83954999342b9823eedc68fdea1 (diff) | |
parent | a2b128aa359627cc1b6d464148cb3fbc30fd32b0 (diff) |
Merged changes in the trunk up to revision 35367.
To branch builders: From this revision Python 3.2 will be used.
Don't forget svn update in the "lib" directory as well.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_channels_defines.c | 7 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 5 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_deps.c | 5 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_draw.c | 7 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_filter.c | 5 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_intern.h | 5 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_ipo_utils.c | 5 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_markers.c | 9 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_ops.c | 5 | ||||
-rw-r--r-- | source/blender/editors/animation/drivers.c | 5 | ||||
-rw-r--r-- | source/blender/editors/animation/fmodifier_ui.c | 85 | ||||
-rw-r--r-- | source/blender/editors/animation/keyframes_draw.c | 9 | ||||
-rw-r--r-- | source/blender/editors/animation/keyframes_edit.c | 7 | ||||
-rw-r--r-- | source/blender/editors/animation/keyframes_general.c | 7 | ||||
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 20 | ||||
-rw-r--r-- | source/blender/editors/animation/keyingsets.c | 14 |
16 files changed, 144 insertions, 56 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c index dbabd47157a..cb535fd7320 100644 --- a/source/blender/editors/animation/anim_channels_defines.c +++ b/source/blender/editors/animation/anim_channels_defines.c @@ -25,6 +25,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/anim_channels_defines.c + * \ingroup edanimation + */ + + #include <stdio.h> #include "MEM_guardedalloc.h" @@ -3442,7 +3447,7 @@ void ANIM_channel_draw_widgets (bAnimContext *ac, bAnimListElem *ale, uiBlock *b uiBut *but; /* create the slider button, and assign relevant callback to ensure keyframes are inserted... */ - but= uiDefAutoButR(block, &ptr, prop, array_index, "", ICON_NULL, (int)v2d->cur.xmax-offset, ymid, SLIDER_WIDTH, (int)ymaxc-yminc); + but= uiDefAutoButR(block, &ptr, prop, array_index, "", ICON_NONE, (int)v2d->cur.xmax-offset, ymid, SLIDER_WIDTH, (int)ymaxc-yminc); /* assign keyframing function according to slider type */ if (ale->type == ANIMTYPE_SHAPEKEY) diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index cbbdb3bdd97..f9da9d2db60 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -25,6 +25,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/anim_channels_edit.c + * \ingroup edanimation + */ + + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/source/blender/editors/animation/anim_deps.c b/source/blender/editors/animation/anim_deps.c index be4110c68b9..b5a1781064c 100644 --- a/source/blender/editors/animation/anim_deps.c +++ b/source/blender/editors/animation/anim_deps.c @@ -26,6 +26,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/anim_deps.c + * \ingroup edanimation + */ + + #include <string.h> #include "MEM_guardedalloc.h" diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c index 9b307b92bec..d0fa540a9dd 100644 --- a/source/blender/editors/animation/anim_draw.c +++ b/source/blender/editors/animation/anim_draw.c @@ -25,6 +25,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file blender/editors/animation/anim_draw.c + * \ingroup edanimation + */ + #include "BLO_sys_types.h" #include "DNA_anim_types.h" @@ -465,7 +470,7 @@ void ANIM_unit_mapping_apply_fcurve (Scene *scene, ID *id, FCurve *fcu, short fl // TODO: only sel? if (fcu->fpt) { FPoint *fpt; - int i; + unsigned int i; for (i=0, fpt=fcu->fpt; i < fcu->totvert; i++, fpt++) { /* apply unit mapping */ diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c index ecb6a1b06ce..34142cf63f6 100644 --- a/source/blender/editors/animation/anim_filter.c +++ b/source/blender/editors/animation/anim_filter.c @@ -26,6 +26,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/anim_filter.c + * \ingroup edanimation + */ + + /* This file contains a system used to provide a layer of abstraction between sources * of animation data and tools in Animation Editors. The method used here involves * generating a list of edit structures which enable tools to naively perform the actions diff --git a/source/blender/editors/animation/anim_intern.h b/source/blender/editors/animation/anim_intern.h index 4f88f3ed194..7818e8118a3 100644 --- a/source/blender/editors/animation/anim_intern.h +++ b/source/blender/editors/animation/anim_intern.h @@ -24,6 +24,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file blender/editors/animation/anim_intern.h + * \ingroup edanimation + */ + #ifndef ANIM_INTERN_H #define ANIM_INTERN_H diff --git a/source/blender/editors/animation/anim_ipo_utils.c b/source/blender/editors/animation/anim_ipo_utils.c index a9ff27e970a..209210435e6 100644 --- a/source/blender/editors/animation/anim_ipo_utils.c +++ b/source/blender/editors/animation/anim_ipo_utils.c @@ -26,6 +26,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/anim_ipo_utils.c + * \ingroup edanimation + */ + + /* This file contains code for presenting F-Curves and other animation data * in the UI (especially for use in the Animation Editors). * diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index eaf7590f7dc..44ad8368063 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -26,6 +26,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/anim_markers.c + * \ingroup edanimation + */ + + #include <math.h> #include "MEM_guardedalloc.h" @@ -281,7 +286,7 @@ void debug_markers_print_list(ListBase *markers) printf("List of markers follows: -----\n"); for (marker = markers->first; marker; marker = marker->next) { - printf("\t'%s' on %d at %p with %d\n", marker->name, marker->frame, marker, marker->flag); + printf("\t'%s' on %d at %p with %d\n", marker->name, marker->frame, (void *)marker, marker->flag); } printf("End of list ------------------\n"); @@ -409,7 +414,7 @@ void draw_markers_time(const bContext *C, int flag) */ /* maximum y-axis value (in region screen-space) that marker events should still be accepted for */ -#define ANIMEDIT_MARKER_YAXIS_MAX 40 +#define ANIMEDIT_MARKER_YAXIS_MAX 30 /* ------------------------ */ diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c index c08b902a13e..a2579613297 100644 --- a/source/blender/editors/animation/anim_ops.c +++ b/source/blender/editors/animation/anim_ops.c @@ -26,6 +26,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/anim_ops.c + * \ingroup edanimation + */ + + #include <stdlib.h> #include <math.h> diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index 11795b76905..75b54a7529a 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -26,6 +26,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file blender/editors/animation/drivers.c + * \ingroup edanimation + */ + #include <stdio.h> #include <string.h> diff --git a/source/blender/editors/animation/fmodifier_ui.c b/source/blender/editors/animation/fmodifier_ui.c index 0b8619c1f6e..390b9f840cb 100644 --- a/source/blender/editors/animation/fmodifier_ui.c +++ b/source/blender/editors/animation/fmodifier_ui.c @@ -26,6 +26,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/fmodifier_ui.c + * \ingroup edanimation + */ + + /* User-Interface Stuff for F-Modifiers: * This file defines the (C-Coded) templates + editing callbacks needed * by the interface stuff or F-Modifiers, as used by F-Curves in the Graph Editor, @@ -227,14 +232,14 @@ static void draw_modifier__fn_generator(uiLayout *layout, ID *id, FModifier *fcm /* add the settings */ col= uiLayoutColumn(layout, 1); - uiItemR(col, &ptr, "function_type", 0, "", ICON_NULL); - uiItemR(col, &ptr, "use_additive", UI_ITEM_R_TOGGLE, NULL, ICON_NULL); + uiItemR(col, &ptr, "function_type", 0, "", ICON_NONE); + uiItemR(col, &ptr, "use_additive", UI_ITEM_R_TOGGLE, NULL, ICON_NONE); col= uiLayoutColumn(layout, 0); // no grouping for now - uiItemR(col, &ptr, "amplitude", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "phase_multiplier", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "phase_offset", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "value_offset", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "amplitude", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "phase_multiplier", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "phase_offset", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "value_offset", 0, NULL, ICON_NONE); } /* --------------- */ @@ -255,15 +260,15 @@ static void draw_modifier__cycles(uiLayout *layout, ID *id, FModifier *fcm, shor /* before range */ col= uiLayoutColumn(split, 1); - uiItemL(col, "Before:", ICON_NULL); - uiItemR(col, &ptr, "mode_before", 0, "", ICON_NULL); - uiItemR(col, &ptr, "cycles_before", 0, NULL, ICON_NULL); + uiItemL(col, "Before:", ICON_NONE); + uiItemR(col, &ptr, "mode_before", 0, "", ICON_NONE); + uiItemR(col, &ptr, "cycles_before", 0, NULL, ICON_NONE); /* after range */ col= uiLayoutColumn(split, 1); - uiItemL(col, "After:", ICON_NULL); - uiItemR(col, &ptr, "mode_after", 0, "", ICON_NULL); - uiItemR(col, &ptr, "cycles_after", 0, NULL, ICON_NULL); + uiItemL(col, "After:", ICON_NONE); + uiItemR(col, &ptr, "mode_after", 0, "", ICON_NONE); + uiItemR(col, &ptr, "cycles_after", 0, NULL, ICON_NONE); } /* --------------- */ @@ -278,20 +283,20 @@ static void draw_modifier__noise(uiLayout *layout, ID *id, FModifier *fcm, short RNA_pointer_create(id, &RNA_FModifierNoise, fcm, &ptr); /* blending mode */ - uiItemR(layout, &ptr, "blend_type", 0, NULL, ICON_NULL); + uiItemR(layout, &ptr, "blend_type", 0, NULL, ICON_NONE); /* split into 2 columns */ split= uiLayoutSplit(layout, 0.5f, 0); /* col 1 */ col= uiLayoutColumn(split, 0); - uiItemR(col, &ptr, "scale", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "strength", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "scale", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "strength", 0, NULL, ICON_NONE); /* col 2 */ col= uiLayoutColumn(split, 0); - uiItemR(col, &ptr, "phase", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "depth", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "phase", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "depth", 0, NULL, ICON_NONE); } /* --------------- */ @@ -471,12 +476,12 @@ static void draw_modifier__envelope(uiLayout *layout, ID *id, FModifier *fcm, sh /* general settings */ col= uiLayoutColumn(layout, 1); - uiItemL(col, "Envelope:", ICON_NULL); - uiItemR(col, &ptr, "reference_value", 0, NULL, ICON_NULL); + uiItemL(col, "Envelope:", ICON_NONE); + uiItemR(col, &ptr, "reference_value", 0, NULL, ICON_NONE); row= uiLayoutRow(col, 1); - uiItemR(row, &ptr, "default_min", 0, "Min", ICON_NULL); - uiItemR(row, &ptr, "default_max", 0, "Max", ICON_NULL); + uiItemR(row, &ptr, "default_min", 0, "Min", ICON_NONE); + uiItemR(row, &ptr, "default_max", 0, "Max", ICON_NONE); /* control points header */ // TODO: move this control-point control stuff to using the new special widgets for lists @@ -528,13 +533,13 @@ static void draw_modifier__limits(uiLayout *layout, ID *id, FModifier *fcm, shor /* x-minimum */ col= uiLayoutColumn(split, 1); - uiItemR(col, &ptr, "use_min_x", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "min_x", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "use_min_x", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "min_x", 0, NULL, ICON_NONE); /* y-minimum*/ col= uiLayoutColumn(split, 1); - uiItemR(col, &ptr, "use_min_y", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "min_y", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "use_min_y", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "min_y", 0, NULL, ICON_NONE); } /* row 2: maximum */ @@ -546,13 +551,13 @@ static void draw_modifier__limits(uiLayout *layout, ID *id, FModifier *fcm, shor /* x-minimum */ col= uiLayoutColumn(split, 1); - uiItemR(col, &ptr, "use_max_x", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "max_x", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "use_max_x", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "max_x", 0, NULL, ICON_NONE); /* y-minimum*/ col= uiLayoutColumn(split, 1); - uiItemR(col, &ptr, "use_max_y", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "max_y", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "use_max_y", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "max_y", 0, NULL, ICON_NONE); } } @@ -569,24 +574,24 @@ static void draw_modifier__stepped(uiLayout *layout, ID *id, FModifier *fcm, sho /* block 1: "stepping" settings */ col= uiLayoutColumn(layout, 0); - uiItemR(col, &ptr, "frame_step", 0, NULL, ICON_NULL); - uiItemR(col, &ptr, "frame_offset", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "frame_step", 0, NULL, ICON_NONE); + uiItemR(col, &ptr, "frame_offset", 0, NULL, ICON_NONE); /* block 2: start range settings */ col= uiLayoutColumn(layout, 1); - uiItemR(col, &ptr, "use_frame_start", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "use_frame_start", 0, NULL, ICON_NONE); subcol = uiLayoutColumn(col, 1); uiLayoutSetActive(subcol, RNA_boolean_get(&ptr, "use_frame_start")); - uiItemR(subcol, &ptr, "frame_start", 0, NULL, ICON_NULL); + uiItemR(subcol, &ptr, "frame_start", 0, NULL, ICON_NONE); /* block 3: end range settings */ col= uiLayoutColumn(layout, 1); - uiItemR(col, &ptr, "use_frame_end", 0, NULL, ICON_NULL); + uiItemR(col, &ptr, "use_frame_end", 0, NULL, ICON_NONE); subcol = uiLayoutColumn(col, 1); uiLayoutSetActive(subcol, RNA_boolean_get(&ptr, "use_frame_end")); - uiItemR(subcol, &ptr, "frame_end", 0, NULL, ICON_NULL); + uiItemR(subcol, &ptr, "frame_end", 0, NULL, ICON_NONE); } /* --------------- */ @@ -618,16 +623,16 @@ void ANIM_uiTemplate_fmodifier_draw (uiLayout *layout, ID *id, ListBase *modifie uiBlockSetEmboss(block, UI_EMBOSSN); /* expand */ - uiItemR(subrow, &ptr, "show_expanded", UI_ITEM_R_ICON_ONLY, "", ICON_NULL); + uiItemR(subrow, &ptr, "show_expanded", UI_ITEM_R_ICON_ONLY, "", ICON_NONE); /* checkbox for 'active' status (for now) */ - uiItemR(subrow, &ptr, "active", UI_ITEM_R_ICON_ONLY, "", ICON_NULL); + uiItemR(subrow, &ptr, "active", UI_ITEM_R_ICON_ONLY, "", ICON_NONE); /* name */ if (fmi) - uiItemL(subrow, fmi->name, ICON_NULL); + uiItemL(subrow, fmi->name, ICON_NONE); else - uiItemL(subrow, "<Unknown Modifier>", ICON_NULL); + uiItemL(subrow, "<Unknown Modifier>", ICON_NONE); /* right-align ------------------------------------------- */ subrow= uiLayoutRow(row, 0); @@ -635,7 +640,7 @@ void ANIM_uiTemplate_fmodifier_draw (uiLayout *layout, ID *id, ListBase *modifie /* 'mute' button */ - uiItemR(subrow, &ptr, "mute", UI_ITEM_R_ICON_ONLY, "", ICON_NULL); + uiItemR(subrow, &ptr, "mute", UI_ITEM_R_ICON_ONLY, "", ICON_NONE); uiBlockSetEmboss(block, UI_EMBOSSN); diff --git a/source/blender/editors/animation/keyframes_draw.c b/source/blender/editors/animation/keyframes_draw.c index a2072a60edf..a75372fdadc 100644 --- a/source/blender/editors/animation/keyframes_draw.c +++ b/source/blender/editors/animation/keyframes_draw.c @@ -27,6 +27,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/keyframes_draw.c + * \ingroup edanimation + */ + + /* System includes ----------------------------------------------------- */ #include <math.h> @@ -920,8 +925,8 @@ void fcurve_to_keylist(AnimData *adt, FCurve *fcu, DLRBT_Tree *keys, DLRBT_Tree { DLRBT_Tree *beztTree = NULL; BezTriple *bezt; - int v; - + unsigned int v; + if (fcu && fcu->totvert && fcu->bezt) { /* apply NLA-mapping (if applicable) */ if (adt) diff --git a/source/blender/editors/animation/keyframes_edit.c b/source/blender/editors/animation/keyframes_edit.c index 4eb0ce2c0b3..168ee878c66 100644 --- a/source/blender/editors/animation/keyframes_edit.c +++ b/source/blender/editors/animation/keyframes_edit.c @@ -24,6 +24,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/keyframes_edit.c + * \ingroup edanimation + */ + + #include <stdlib.h> #include <string.h> #include <math.h> @@ -91,7 +96,7 @@ short ANIM_fcurve_keyframes_loop(KeyframeEditData *ked, FCurve *fcu, KeyframeEdi { BezTriple *bezt; short ok = 0; - int i; + unsigned int i; /* sanity check */ if (ELEM(NULL, fcu, fcu->bezt)) diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c index aea8c2407b4..53d8b4d67f1 100644 --- a/source/blender/editors/animation/keyframes_general.c +++ b/source/blender/editors/animation/keyframes_general.c @@ -25,6 +25,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/editors/animation/keyframes_general.c + * \ingroup edanimation + */ + + #include <stdlib.h> #include <string.h> #include <math.h> @@ -323,7 +328,7 @@ void smooth_fcurve (FCurve *fcu) } /* calculate the new smoothed F-Curve's with weighted averages: - * - this is done with two passes + * - this is done with two passes to avoid progressive corruption errors * - uses 5 points for each operation (which stores in the relevant handles) * - previous: w/a ratio = 3:5:2:1:1 * - next: w/a ratio = 1:1:2:5:3 diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index adc580c253d..125c8bbc55a 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -26,6 +26,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file blender/editors/animation/keyframing.c + * \ingroup edanimation + */ + #include <stdio.h> #include <stddef.h> @@ -295,6 +300,7 @@ int insert_bezt_fcurve (FCurve *fcu, BezTriple *bezt, short flag) int insert_vert_fcurve (FCurve *fcu, float x, float y, short flag) { BezTriple beztr= {{{0}}}; + unsigned int oldTot = fcu->totvert; int a; /* set all three points, for nicer start position @@ -330,10 +336,16 @@ int insert_vert_fcurve (FCurve *fcu, float x, float y, short flag) if ((fcu->totvert > 2) && (flag & INSERTKEY_REPLACE)==0) { BezTriple *bezt= (fcu->bezt + a); - /* set interpolation from previous (if available) */ - // FIXME: this doesn't work if user tweaked the interpolation specifically, and they were just overwriting some existing key in the process... - if (a > 0) bezt->ipo= (bezt-1)->ipo; - else if (a < fcu->totvert-1) bezt->ipo= (bezt+1)->ipo; + /* set interpolation from previous (if available), but only if we didn't just replace some keyframe + * - replacement is indicated by no-change in number of verts + * - when replacing, the user may have specified some interpolation that should be kept + */ + if (fcu->totvert > oldTot) { + if (a > 0) + bezt->ipo= (bezt-1)->ipo; + else if (a < fcu->totvert-1) + bezt->ipo= (bezt+1)->ipo; + } /* don't recalculate handles if fast is set * - this is a hack to make importers faster diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index d71c494705e..324e9e39fc4 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -26,6 +26,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file blender/editors/animation/keyingsets.c + * \ingroup edanimation + */ + #include <stdio.h> #include <stddef.h> @@ -54,6 +59,7 @@ #include "ED_screen.h" #include "UI_interface.h" +#include "UI_resources.h" #include "WM_api.h" #include "WM_types.h" @@ -760,14 +766,14 @@ void ANIM_keying_sets_menu_setup (bContext *C, const char title[], const char op uiLayout *layout; int i = 0; - pup= uiPupMenuBegin(C, title, ICON_NULL); + pup= uiPupMenuBegin(C, title, ICON_NONE); layout= uiPupMenuLayout(pup); /* active Keying Set * - only include entry if it exists */ if (scene->active_keyingset) { - uiItemIntO(layout, "Active Keying Set", ICON_NULL, op_name, "type", i++); + uiItemIntO(layout, "Active Keying Set", ICON_NONE, op_name, "type", i++); uiItemS(layout); } else @@ -779,7 +785,7 @@ void ANIM_keying_sets_menu_setup (bContext *C, const char title[], const char op if (scene->keyingsets.first) { for (ks= scene->keyingsets.first; ks; ks= ks->next) { if (ANIM_keyingset_context_ok_poll(C, ks)) - uiItemIntO(layout, ks->name, ICON_NULL, op_name, "type", i++); + uiItemIntO(layout, ks->name, ICON_NONE, op_name, "type", i++); } uiItemS(layout); } @@ -789,7 +795,7 @@ void ANIM_keying_sets_menu_setup (bContext *C, const char title[], const char op for (ks= builtin_keyingsets.first; ks; ks= ks->next) { /* only show KeyingSet if context is suitable */ if (ANIM_keyingset_context_ok_poll(C, ks)) - uiItemIntO(layout, ks->name, ICON_NULL, op_name, "type", i--); + uiItemIntO(layout, ks->name, ICON_NONE, op_name, "type", i--); } uiPupMenuEnd(C, pup); |