Blender Git Loki

Git Commits -> Revision b958460

Revision b958460 by Joshua Leung (master)
August 11, 2009, 11:52 (GMT)
Animation Editors: Code Cleanup Part 1 - Drawing

Finally started refactoring the drawing code for animation editors so that all the drawing (of the channels/names list) is done using standardised code for all the editors.

A little specialised system for this has been made, and is now used for DopeSheet and Graph Editor drawing. This should make it easier to add new channel types with less effort.

Protect/mute toggles are now always clamped to the right-hand edge of the channels list. So you can now make the list wider to view longer names fully. However, since the mouse-handling hasn't been fixed yet, this won't always work.

TODOs:
* make mouse-click handling code use this system too, simplifying things to 1-2 lines of code there. Maybe this could be made to use UI widgets instead at a later date?
* NLA still needs to be ported to this system

Commit Details:

Full Hash: b9584607c57720da9e443a42eff30d758c4075a0
SVN Revision: 22367
Parent Commit: 911078a
Lines Changed: +3840, -3101

2 Added Paths:

/source/blender/editors/animation/anim_channels_defines.c (+1946, -0) (View)
/source/blender/editors/animation/anim_channels_edit.c (+1806, -0) (View)

1 Deleted Path:

/source/blender/editors/animation/anim_channels.c (+0, -2020)

3 Modified Paths:

/source/blender/editors/include/ED_anim_api.h (+80, -12) (Diff)
/source/blender/editors/space_action/action_draw.c (+5, -565) (Diff)
/source/blender/editors/space_graph/graph_draw.c (+3, -504) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021