Blender Git Loki
Git Commits -> Revision 7b819bc
Revision 7b819bc by Joshua Leung (master) July 30, 2008, 09:07 (GMT) |
== Grease Pencil - Eraser (First Draft) == This commit introduces the ability to erase strokes. Admittedly, the code for this is not totally stable yet, and doesn't always produce optimum results. I'm committing now for backup purposes. It currently uses the lasso code to check whether segments of the strokes (a segment occurs between two recorded points) occur inside a region defined by the 'eraser' stroke, or any intersections it makes with the 'eraser' stroke. There are multiple ways to erase strokes: * With 'Draw Mode' on, use RMB-drag to erase * With a tablet, use the 'eraser' end of the stylus * Hold the Alt Key, and use the 'selection' mouse-button (i.e. LMB if mouse-button swapping is on, RMB otherwise) to erase. For this one, this is necessary to avoid overriding the view-rotation hotkey combo for 2-button mice! Todo: * 3d-strokes are not correctly mapped back to screen-space for sampling yet * Drawing of eraser strokes is still not distinctive enough * After running a few times, may cause stack corruption/segfaults, so be careful! == Bugfixes == * Grease-Pencil Onion-Skinning works again. Onionskining was being supplied the wrong frames, and the alpha factor was still the old one used for 0-255 ranged colour values |
Commit Details:
Full Hash: 7b819bc6316ac32c60dd6a0e404bc9e2a781feba
SVN Revision: 15878
Parent Commit: 34bb446
Lines Changed: +369, -95
6 Modified Paths:
/source/blender/include/BDR_gpencil.h (+9, -0) (Diff)
/source/blender/include/BIF_editview.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+1, -1) (Diff)
/source/blender/src/drawgpencil.c (+77, -15) (Diff)
/source/blender/src/editview.c (+1, -1) (Diff)
/source/blender/src/gpencil.c (+280, -78) (Diff)
/source/blender/include/BIF_editview.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+1, -1) (Diff)
/source/blender/src/drawgpencil.c (+77, -15) (Diff)
/source/blender/src/editview.c (+1, -1) (Diff)
/source/blender/src/gpencil.c (+280, -78) (Diff)