Animation Editors: Code Cleanup Part 1 - Drawing
authorJoshua Leung <aligorith@gmail.com>
Tue, 11 Aug 2009 11:52:23 +0000 (11:52 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 11 Aug 2009 11:52:23 +0000 (11:52 +0000)
commitb9584607c57720da9e443a42eff30d758c4075a0
treef1eb2e01fb6af22a6c7f908b3e933c897799080e
parent911078aaaddfab72eeea564f671f7e1a1c392300
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
source/blender/editors/animation/anim_channels_defines.c [new file with mode: 0644]
source/blender/editors/animation/anim_channels_edit.c [moved from source/blender/editors/animation/anim_channels.c with 90% similarity]
source/blender/editors/include/ED_anim_api.h
source/blender/editors/space_action/action_draw.c
source/blender/editors/space_graph/graph_draw.c