Mask primitives
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 26 Aug 2013 20:23:26 +0000 (20:23 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 26 Aug 2013 20:23:26 +0000 (20:23 +0000)
commit03dbae07d346dcfb5cdaeeeea3585f642cd90d31
tree866db44539cf778c636cd774f524970d434c77d3
parent11aa7a76fab53809f891ab8ff7898a2dd70005b8
Mask primitives

Currently only circle and square, might be easily
extended in the future.

New primitives are creating at cursor location.
This also implied adding 2d cursor to space clip.

Also fix set 2D cursor location which didn't work
in image editor's mask mode since 2.67.

TODO: draw_image_cursor better be moved to some
      more generic file, but it's not so much
      important for now and might be solved later.

Thanks Campbell for the review!
18 files changed:
release/scripts/startup/bl_operators/__init__.py
release/scripts/startup/bl_operators/mask.py [new file with mode: 0644]
source/blender/editors/include/ED_mask.h
source/blender/editors/include/ED_uvedit.h
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/view2d.c
source/blender/editors/mask/mask_add.c
source/blender/editors/mask/mask_edit.c
source/blender/editors/mask/mask_intern.h
source/blender/editors/mask/mask_ops.c
source/blender/editors/space_clip/clip_draw.c
source/blender/editors/space_clip/clip_intern.h
source/blender/editors/space_clip/clip_ops.c
source/blender/editors/space_clip/space_clip.c
source/blender/editors/space_image/space_image.c
source/blender/editors/uvedit/uvedit_draw.c
source/blender/editors/uvedit/uvedit_ops.c
source/blender/makesdna/DNA_space_types.h