Revision 3fde390 by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 08:52 (GMT) |
Merge branch 'blender2.8' into greasepencil-object |
Revision 496064f by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
GP Add Primitives: Attempted fix for double-clicking on the toolbar button Check for what type of mouse-press it was, instead of just assuming that the clicks are what we think they are. Note: If things still go wrong, there's also now a debug-print there (debug-mode only) to help track things down. |
Revision 7d48923 by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
GP Add Primitive: Don't make a copy of the new stroke. Just copy it over! |
Revision 4cd2f80 by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
Cleanup: Streamline logic here - just check once, not twice |
Revision e12b1c2 by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
GP Add Primitive Ops: Remove the "avoid fast double clicks" event hack This was making the operator unnecessarily clumsy to use, especially for anyone used to the way that drawing tools everywhere else work. Old workflow (with the hack): 1) Click Rectangle/Circle to start the operator 2) Click (Press & Release) in the 3D view to start drawing the shape 3) Click again (Press & Release) to stop drawing (4) Click again, realising that you forgot to release the mouse in step 2 (provided you realised why it "wasn't working") New workflow (more in line with standard workflows): 1) Click Rectangle/Circle to start the operator 2) Press and drag in the 3D view to start drawing the shape 3) Release to stop drawing |
Revision e70d497 by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
GP Add Primitives: Allow operator to work in Edit Mode too It didn't really make sense why this was restricted to Draw mode only. In particular, there are 2 good arguments for allowing it in editmode too: 1) In many ways, it's more similar to a Copy/Paste or Duplicate operation in that it just dumps a bunch of stroke geometry into the scene without you having to draw anything. We allow those, so why not this. 2) Users are used to being able to go into Edit Mode and add a primitive shape into the datablock to begin editing it. For consistency with other modes, and also to prevent the "Creation" tab looking stupid and redundant in EditMode, let's enable this. Note: * Sculpt/Weight Paint modes do not have this enabled for now. In those modes, users are less likely to be concerned with adding geometry, and more with modifying the existing geometry. |
Revision 388bb6e by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
Cleanup: Use M_PI instead of converting from degrees to radians Note: While the center/radius calcs may benefit from using the BLI_math funcs, the current implementation is more direct. |
Revision 4d99df8 by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
GP Add Primitives: De-duplicate code Most of the logic in gp_primitive_rectangle() and gp_primitive_circle() was duplicated, and responsible for performing space-conversion stuff on the 2d/screen-space coordinates. This commit properly separates out these concerns, de-duplicating code, and fixing a few other minor issues at the same time (e.g. superfluous copies, and "edges" not getting initialised properly) |
Revision de29d5f by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
GP Add Primitives: Removed the requirement for an active layer Previously, the add primitive operator (rectangle/circle) required there to be an active layer present before it would allow you to draw a new primitive. However, this reduced the usefulness of this tool (especially if you intended to use these tools to roughly block out the requried shapes first in a new/blank GP object). There was no real reason for this limitation, so no, the operator will create a new layer itself if necessary, just like the Draw operator has done since day one! |
Revision 00fe5d4 by Joshua Leung (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 30, 2018, 06:04 (GMT) |
Cleanup: Remove redundant functions These were just adding extra layers of abtraction/complexity without serving any actual purpose. |
Revision 498c203 by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 22:11 (GMT) |
Rename "Chessboard" to "Checker Board" |
Revision 240dbd2 by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 18:59 (GMT) |
Support multiframe for change color operator |
Revision c85edc8 by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 18:48 (GMT) |
Fix Undo problem with color picker |
Revision 458aee0 by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 18:45 (GMT) |
Redesign off GP icons Designed by Matias Mendiola Thanks Pablo Vazquez for the feedback |
Revision 99ee18c5 by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 17:33 (GMT) |
Merge branch 'blender2.8' into greasepencil-object |
Revision 8f7f79e by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 17:24 (GMT) |
Enable drawing start with Shift + Mouse This is necessary for lazy mode start |
Revision 32a2edb by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 17:15 (GMT) |
Change Pattern drawing to use standard functions Now the drawing is using the standard functions instead of custom drawing. Thanks Pablo Vazquez for the trick |
Revision c5786b5 by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 17:03 (GMT) |
Disable brush temp override for lazy mouse |
Revision 5fc8ecd by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 16:45 (GMT) |
Use Shift key to toggle Lazy Mouse Now while drawing you can enable or disable the lazy mouse with the shift key. If the brush has lazy enabled, shift key disable it. If the brush has lazy disabled, shift key enable it. |
Revision 5662874 by Antonio Vazquez (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) January 29, 2018, 15:54 (GMT) |
Replace Polygon Keymap to Ctrl+Shift This keymap has been changed in order to free the shift key for Lazy Mouse |
|