Blender Git Commit Log
Git Commits -> Revision c7fa55e
Revision c7fa55e by Ton Roosendaal (master) January 9, 2009, 13:55 (GMT) |
2.5 Vertex Paint back! Added WM level "paint cursor" system, which manages a custom painting cursor for tools or modes. - Activate it with WM_paint_cursor_activate(). That function wants two callbacks, a poll(C) to check whether there's a cursor in given context and ARegion, and a draw(C, x, y) which gets called when appropriate. - While paintcursor is active, the WM handles necessary redrawing events for all regions, also to nicely clear the cursor on region exit. - WM_paint_cursor_activate returns a handle, which you have to use to end the paint cursor. This handle also means you can register as many custom cursors as you want. At the moment, vertex paint mode registers only a mousemove handler, all other events are still normally handled. This is stuff for the future todo. |
Commit Details:
Full Hash: c7fa55eebdd74812c5bd993e8ec54ec5b04197f2
SVN Revision: 18430
Parent Commit: a93e253
Lines Changed: +522, -299
16 Modified Paths:
/source/blender/blenloader/intern/readfile.c (+1, -1) (Diff)
/source/blender/editors/include/ED_view3d.h (+6, -0) (Diff)
/source/blender/editors/object/object_edit.c (+4, -17) (Diff)
/source/blender/editors/screen/area.c (+23, -25) (Diff)
/source/blender/editors/screen/screen_edit.c (+2, -1) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+28, -9) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+6, -0) (Diff)
/source/blender/editors/space_view3d/view3d_ops.c (+7, -0) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/vpaint.c (+318, -218) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm.c (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+79, -26) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+33, -1) (Diff)
/source/blender/windowmanager/wm.h (+7, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)
/source/blender/editors/include/ED_view3d.h (+6, -0) (Diff)
/source/blender/editors/object/object_edit.c (+4, -17) (Diff)
/source/blender/editors/screen/area.c (+23, -25) (Diff)
/source/blender/editors/screen/screen_edit.c (+2, -1) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+28, -9) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+6, -0) (Diff)
/source/blender/editors/space_view3d/view3d_ops.c (+7, -0) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/vpaint.c (+318, -218) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm.c (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+79, -26) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+33, -1) (Diff)
/source/blender/windowmanager/wm.h (+7, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)