Graph Editor: Added 2D Cursor
authorJoshua Leung <aligorith@gmail.com>
Tue, 20 Oct 2009 12:04:56 +0000 (12:04 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 20 Oct 2009 12:04:56 +0000 (12:04 +0000)
commit00f3d83b6ab5f4f9ee4f69457e492db72a03cf30
treedd57f5d8b0bb859a0403225a11d118844a728c68
parentec6bccfad1609fa09a703d7496310da246fd5825
Graph Editor: Added 2D Cursor

I've finally given in, and implemented a '2d-cursor' for the Graph Editor. This is simply represented as an additional horizontal line that meets with the current frame indicator, forming a cross-hair. It can be disabled from the View menu.

Currently, the only tool which takes this into account is the Snapping tools (Shift-S), where I've hooked up a tool I added some time ago.

TODO:
- expose this cursor to the transform tools for scaling/rotation options...
source/blender/editors/animation/anim_draw.c
source/blender/editors/animation/anim_ops.c
source/blender/editors/armature/editarmature.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_graph/graph_header.c
source/blender/editors/space_graph/graph_intern.h
source/blender/editors/space_graph/graph_ops.c
source/blender/editors/space_graph/space_graph.c
source/blender/makesdna/DNA_space_types.h
source/blender/makesrna/intern/rna_space.c