Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-22Fix T45133: Crash drawing material buttonsCampbell Barton
2015-06-20Cleanup: use listbase clearCampbell Barton
2015-05-21GPencil Eraser Size-Saving FixJoshua Leung
On second thought, the eraser size should be saved even if the brush type is not eraser, as we can toggle this now.
2015-05-21Fix T44774: Grease Pencil eraser size reset after exiting sessionJoshua Leung
Previously, it would only save the eraser size if the session ended properly, instead of being cancelled. However, that wouldn't happen if exiting the session using Esc.
2015-05-17Fix T44084 - Cursor gets reset after MMB scrolling in another area while in ↵Joshua Leung
GPencil Continous Draw Mode
2015-05-17Fix T44685 - In grease pencil stroke editing, selecting points is offset by ↵Joshua Leung
a few pixels The problem was that it was aborting too early after stumbling across a point which might fit within the bounds required. This commit improves the logic here to solve this and a few other little bugs like that. Disclaimer: There are still a few cases where it randomly ends up picking something way off. However, this only seems to occur very sporadically, so it's hard to say how bad the problem may be.
2015-05-04Cleanup: style & const'sCampbell Barton
2015-05-04Fix T29029: Grease pencil fails in Quad ViewCampbell Barton
2015-05-01Left some debug prints in here...Joshua Leung
2015-05-01Fix T43867: Clicking outside the viewport exits now Grease Pencil "Continous ↵Joshua Leung
Draw" mode When working with a pen only, it was previously impossible to exit Grease Pencil draw mode (when continous drawing was enabled). Now, clicking outside the drawing region (e.g. in the timeline, properties editor, or the header/properties/toolshelf regions) where you are drawing will exit this mode. Some corner cases to be aware of: * When Region Overlap is enabled, clicking on the overlapping panels still exits draw mode (even though you can see behind the buttons) * In the Nodes Editor, clicking on a node (while in drawmode) will still draw a dot/stroke. But, you can still exit drawmode by clicking on any of the panels (properties/toolshelf/header) mentioned earlier * To cope with cases where the operator is launched from the toolshelf, the code now sets a new "active region" when the first stroke is performed (based on what region is under the cursor at the time of that stroke), overwriting the setting that got stored when invoking the operator (i.e. the toolshelf). This change doesn't have any real user-visible effects, other than making it possible for this fix to actually work without breaking that use case.
2015-04-20Cleanup: use bool /w flag checksCampbell Barton
2015-04-20Fix: "show_points" setting for Grease Pencil drawing didn't workJoshua Leung
As reported by zeffi, the "show_points" option was not working in master. It probably broke recently, after some changes meant that the point sizes weren't geting set prior to drawing these points anymore. Since this was originally added as a debugging tool (though it is now somewhat redundant due to the stroke editing functionality, which uses/exposes the same points), this option wasn't really that important. I have decided to add back a toggle for this to the UI though, since it can be used for some interesting effects...
2015-04-16OpenGL does not like line thickness less than 1.0.Antony Riakiotakis
Check here is not completely correct either, we should check against GL_ALIASED_LINE_WIDTH_RANGE and GL_SMOOTH_LINE_WIDTH_RANGE
2015-04-15Cleanup: use const for event->tablet_dataCampbell Barton
2015-04-07Revert Sticky Keys (and everything related to that)Julian Eisel
Our current keymap doesn't give us enough room to make such changes in the event system. To fix small issues caused by this, we would need to do drastic changes in Blender's keymaps and internal handling. It was worth a try, but it didn't work. I can write down a more descriptive statement in a few days, but for now I need a break of this stuff.
2015-04-06Fix: Stroke Edit Mode warning for GPencil draws correctly with Region ↵Joshua Leung
Overlap enabled
2015-04-04WM: prefer define over zero wmEvent.valCampbell Barton
2015-04-04Fix T44259: Secondary strokes get terminated early when drawing in ↵Julian Eisel
Continuous Drawing mode
2015-04-03Sticky Keys backendJulian Eisel
Design task: T42339 Differential Revision: D840 Initial implementation proposal: T41867 Short description: With this we can distinguish between holding and tabbing a key. Useful is this if we want to assign to operators to a single shortcut. If two operators are assigned to one shortcut, we call this a sticky key. More info is accessible through the design task and the diff. A few people that were involved with this: * Sean Olson for stressing me with this burden ;) - It is his enthusiasm that pushed me forward to get this done * Campbell and Antony for the code and design review * Ton for the design review * All the other people that gave feedback on the patch and helped to make this possible A big "Thank You" for you all!
2015-04-02Cleanup: Make strict flags happySergey Sharybin
We might also just remove those arguments perhaps?
2015-04-02GPencil: Draw status indicator in top-right corner when in Stroke Edit ModeJoshua Leung
When in Stroke Edit Mode, an indicator/warning message is now shown in the top-right corner to make it easier to notice that operations will apply to Grease Pencil strokes instead.
2015-04-02GPencil: H/Shift-H/Alt-H now work to Hide and Reveal Layers in Strokes Edit ModeJoshua Leung
* H = Hide active layer * Shift-H = Hide non-active layers * Alt-H = Show all layers
2015-04-02Code Cleanup: Pruning back the unusued includes nowJoshua Leung
2015-04-02Code Cleanup: Reshuffling some of the GPencil codeJoshua Leung
* Moved the context handling stuff into gpencil_utils.c * Moved the datablock and layer operators out into their own file too. Again, these weren't related to the other stuff that much * Split the GPencil to Curves operator out into its own file (gpencil_convert.c). This was quite a massive blob of code (48kb) that was not that related to the other operators still in that file (gpencil_edit.c)
2015-03-27Cleanup: gpencil headersCampbell Barton
2015-03-10Fix T43941: Grease pencil eraser outline vanishesCampbell Barton
2015-02-21GPencil: Another fix for the "big square dots" problemJoshua Leung
Strokes containing only a single point are now drawn so that they respect the pressure values too. Previously, they were getting drawn at a fixed size based on the thickness of strokes. Thanks to @kekeljevic for posting a screenshot which made the problem here easy to identify! (On a side note: Perhaps it's a combination of the drivers I'm using, or the multisampling goodness at work, but after applying this change, the dots are now appearing as round circles as originally intended, and can also be scaled up quite a bit too. And that's for 3D points which couldn't be affected like this earlier! I'm not sure what's going on here, but whatever it is, I like it ;)
2015-02-19RNA: pass only 0/1 to RNA_property_boolean_setCampbell Barton
2015-02-18GPencil Fix: Added checks to ensure that copy/paste doesn't paste ↵Joshua Leung
incompatible strokes There was a problem with the copy/paste functionality, where it would be possible to paste 3d strokes into 2D editors, or 2D strokes into the 3D view. The problem with that though is that these will not show up, and because there's no feedback at the time, users may end up doing this pasting several times.
2015-02-17GPencil: On the fly switching between Drawing and Erasing when using ↵Joshua Leung
"Continuous Drawing" It is now possible to switch between drawing and erasing strokes when in the modal "Continous Drawing" sessions. This makes the drawing experience just a little more fluid, saving some unncessary steps to get out of the editing mode to activate the intended tool. TODO: Is there interest for tablet support for this too?
2015-02-12GPencil: Alt-S can now be used to adjust the pressure values (i.e. ↵Joshua Leung
thickness) of strokes
2015-02-12GPencil: LKEY can now be used for Select Linked too nowJoshua Leung
2015-02-11Fix T43149: Grease Pencil fill areas look divided by multiples ray linesJoshua Leung
The problem here was caused by the usage of GL_POLYGON_SMOOTH (thanks Campbell for the help tracking this down!). Apparently the issue is that this option ends up doing some nasty accumulation with whatever is in the framebuffer for each *tesselated* polygon (instead of the whole polygon as intended/expected). ** IMPORTANT USER NOTES ** With the removal of this option, filled areas and volumetric strokes will now have jagged edges again. To resolve these artifacts, it is necessary to enable Viewport Multisampling (found in the User Preferences, under the System tab), and restart Blender to see the effects of this change.
2015-02-10Fix grease-pencil crash without clip/track dataCampbell Barton
2015-02-04Fix T43552: Cannot jump between GP keyframes in dopesheetJoshua Leung
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-19Bugfix T43293: Crash when editing shared GPencil datablock in VSEJoshua Leung
The problem here was that when a Grease Pencil datablock is shared between the 3D view and another one of the editors, all the strokes were getting handled by the editing operators, even if those strokes could not be displayed/used in that context. As a result, the coordinate conversion methods would fail, as some of the needed data would not be set. The fix here involves not including any offending strokes in such cases...
2015-01-19GPencil: Added asserts for checking when trying to convert coordinates for ↵Joshua Leung
invalid stroke types (for current editor) Added for checking on the cause of T43293, and to aid in setting up a fix to remedy the situation.
2015-01-10GPencil Editing: FKEY now controls the eraser size when in Stroke Edit ModeJoshua Leung
2015-01-10Fix: Delkey didn't activate the Grease Pencil strokes delete operator like ↵Joshua Leung
XKEY does
2015-01-07Fix: Restored "Draw Poly" to D Ctrl RMB, as D Alt LMB was blocked by Alt-D ↵Joshua Leung
(duplicate) keymap
2015-01-03Grease Pencil: Vertex size and colours are now themableJoshua Leung
2015-01-01GPencil Editing: Copy and Paste selected stroke segments with Ctrl-C and Ctrl-VJoshua Leung
2014-12-31Compilation error fix for strict flagsSergey Sharybin
2014-12-31Operator to duplicate the active Grease Pencil layerJoshua Leung
TODO: this needs a proper "duplicate" icon, without the "ID" label
2014-12-27Experimental fix for "random large dots" bug when using a stylusJoshua Leung
Since I don't have a (pressure sensitive) tablet handy, I can't really test this out, but apparently there is a bug which currently exists with the following description: "Small Dots, when you do just one click a single GP dot is created, it´s fine but don't recognize the pen pressure, always the maximum value of thickness, and It´s so easy create dots accidentally (even when you use the eraser, this dots appear spontaneously) and you start to have big screen-size-constant dots beside of you fine lines." This commit just shuffles around the order of things a bit so that some of the misfiring events might get skipped instead.
2014-12-27Restoring all the whitespace!Joshua Leung
2014-12-26GPencil: Picky whitespace cleanupjulianeisel
2014-12-26GPencil: Use a different brush cursor for eraserjulianeisel
D783 with minor edits to increase contrast
2014-12-21GPencil: Correction to rB071ec918f4cdjulianeisel
* correct API convention: in rB071ec918f4cd gp_draw_data drew mulitple data blocks, I added gp_draw_data_all which now calles gp_draw_data multiple times (if needed). This follows our normal convention, e.g. see UI_panel_category_draw_all * Draw scene data first, users may expect it like this Points raised by @aligorith, thanks for this!