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
2016-03-29GPencil New Stroke Smoothing: Don't perform smoothing on pressure valuesJoshua Leung
As noted by Antonio and Daniel, performing smoothing on the pressure values for new strokes doesn't work that great. From an artist POV, it is apparently "very strange that line thickness shrink suddenly after drawing it".
2016-03-28GPencil: Note that clicking outside the active area also exits draw modeJoshua Leung
2016-03-27GPencil: Remove the old UserPrefs-based On/Off Stroke Smoothing methodJoshua Leung
This never really worked that well, and often ended up being far too strong to be of practical use. The new options do similar things, but with greater control, so removing this old method now.
2016-03-27GPencil: Smooth and Subdivision variable/setting namingJoshua Leung
On second thought, these might be better names for these... I'm still not 100% happy with these, but they will do for now. (Best results currently seem to be with smooth 0.7, and subdivision steps 1 or 2)
2016-03-27GPencil: Removed the restriction of not subdividing strokes further if it ↵Joshua Leung
exceeds GP_STROKE_BUFFER_MAX Assuming that this subdivision + smoothing mostly only happens at the end of a stroke anyway, enforcing this max-points limit in some cases was resulting in strokes that weren't quite getting subdivided properly as the others.
2016-03-27GPencil: Code Cleanup - Simplify and clarify the code for subdividing a strokeJoshua Leung
2016-03-27GPencil: Restore ability for Smooth brush to affect pressure values of strokesJoshua Leung
2016-03-27Code Cleanup - Style tweaksJoshua Leung
2016-03-27Improve grease pencil stroke qualityAntonio Vazquez
Improve the quality of current grease pencil strokes adding a new dynamic smooth and subdivision. The level of smooth and subdivide can be adjusted using UI parameters. These options are disabled by default in order to keep the grease pencil stroke compatible with any existing add-on. Both parameters are defined at layer level. Reviewers: aligorith Differential Revision: https://developer.blender.org/D1866
2016-02-08GPencil: Layers with alpha = 0 should not be editableJoshua Leung
* Added a new API function to test if a GPencil layer is visible or not * Replaced all editability checks with this new "super check" * Replaced all magic number thresholds for opacity visiblity with a single define
2016-02-08Code Cleanup: Use bool instead of int for "setactive" paramJoshua Leung
2016-02-08GPencil: Numpad 0 and Numpad view rotation keys now work in Continuous ↵Joshua Leung
Drawing Mode When animating to the camera, and working in "Continuous Drawing Mode", it be necessary to return to the active camera viewport, after briefly pivoting the view using MMB (to check on perspective or something like that). However, before this fix, you would have had to exit drawing mode to do this.
2016-02-08GPencil Eraser: Do not allow eraser radius to get smaller than 1 pixelJoshua Leung
2016-01-11Fix T47101 - Grease Pencil eraser doesn't work when activated using D+RMB ↵Joshua Leung
when using a tablet When using D+RMB using a tablet (e.g. holding down the side button of the stylus while hovering it over the surface of the tablet) to erase, the tablet would report zero-pressure. This causes problems when using the new pressure-sensitive Grease Pencil eraser, causing it to have no effect.
2015-12-13Grease Pencil: Merge GPencil_Editing_Stage3 branch into masterJoshua Leung
This commit merges all the work done in the GPencil_Editing_Stage3 branch as of ef2aecf2db981b5344e0d14e7f074f1742b0b2f7 into master. For more details about the changes that this brings, see the WIP release notes: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.77/GPencil
2015-09-21Cleanup: use malloc when calloc is overwrittenCampbell Barton
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-08-06T44932: Disable pressure handling for "poly" mode tooJoshua Leung
2015-08-06StopGap Fix for T44932: Ignore pressure values when drawing straight line ↵Joshua Leung
segments with GPencil After some testing of the behaviour of this stuff, it became clear that the current pressure handling here isn't very useful. The initial point would invariably get a low pressure value (due to the way that the initial tap needs time to "take"), while the end of the stroke suffers from similar issues (i.e. when the pen is released). Meanwhile, the line thickness would flicker while drawing the stroke, as the endpoint pressure varied. So, until we find a better way, all straight line segments are now drawn without pressure sensitivity.
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-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-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-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-03-10Fix T43941: Grease pencil eraser outline vanishesCampbell Barton
2015-02-19RNA: pass only 0/1 to RNA_property_boolean_setCampbell Barton
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-10Fix grease-pencil crash without clip/track dataCampbell Barton
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-11-30Grease Pencil - Storyboarding Features (merge from GPencil_EditStrokes branch)Joshua Leung
This merge-commit brings in a number of new features and workflow/UI improvements for working with Grease Pencil. While these were originally targetted at improving the workflow for creating 3D storyboards in Blender using the Grease Pencil, many of these changes should also prove useful in other workflows too. The main highlights here are: 1) It is now possible to edit Grease Pencil strokes - Use D Tab, or toggle the "Enable Editing" toggles in the Toolbar/Properties regions to enter "Stroke Edit Mode". In this mode, many common editing tools will operate on Grease Pencil stroke points instead. - Tools implemented include Select, Select All/Border/Circle/Linked/More/Less, Grab, Rotate, Scale, Bend, Shear, To Sphere, Mirror, Duplicate, Delete. - Proportional Editing works when using the transform tools 2) Grease Pencil stroke settings can now be animated NOTE: Currently drivers don't work, but if time allows, this may still be added before the release. 3) Strokes can be drawn with "filled" interiors, using a separate set of colour/opacity settings to the ones used for the lines themselves. This makes use of OpenGL filled polys, which has the limitation of only being able to fill convex shapes. Some artifacts may be visible on concave shapes (e.g. pacman's mouth will be overdrawn) 4) "Volumetric Strokes" - An alternative drawing technique for stroke drawing has been added which draws strokes as a series of screen-aligned discs. While this was originally a partial experimental technique at getting better quality 3D lines, the effects possible using this technique were interesting enough to warrant making this a dedicated feature. Best results when partial opacity and large stroke widths are used. 5) Improved Onion Skinning Support - Different colours can be selected for the before/after ghosts. To do so, enable the "colour wheel" toggle beside the Onion Skinning toggle, and set the colours accordingly. - Different numbers of ghosts can be shown before/after the current frame 6) Grease Pencil datablocks are now attached to the scene by default instead of the active object. - For a long time, the object-attachment has proved to be quite problematic for users to keep track of. Now that this is done at scene level, it is easier for most users to use. - An exception for old files (and for any addons which may benefit from object attachment instead), is that if the active object has a Grease Pencil datablock, that will be used instead. - It is not currently possible to choose object-attachment from the UI, but it is simple to do this from the console instead, by doing: context.active_object.grease_pencil = bpy.data.grease_pencil["blah"] 7) Various UI Cleanups - The layers UI has been cleaned up to use a list instead of the nested-panels design. Apart from saving space, this is also much nicer to look at now. - The UI code is now all defined in Python. To support this, it has been necessary to add some new context properties to make it easier to access these settings. e.g. "gpencil_data" for the datablock "active_gpencil_layer" and "active_gpencil_frame" for active data, "editable_gpencil_strokes" for the strokes that can be edited - The "stroke placement/alignment" settings (previously "Drawing Settings" at the bottom of the Grease Pencil panel in the Properties Region) is now located in the toolbar. These were more toolsettings than properties for how GPencil got drawn. - "Use Sketching Sessions" has been renamed "Continuous Drawing", as per a suggestion for an earlier discussion on developer.blender.org - By default, the painting operator will wait for a mouse button to be pressed before it starts creating the stroke. This is to make it easier to include this operator in various toolbars/menus/etc. To get it immediately starting (as when you hold down DKEy to draw), set "wait_for_input" to False. - GPencil Layers can be rearranged in the "Grease Pencil" mode of the Action Editor - Toolbar panels have been added to all the other editors which support these. 8) Pie menus for quick-access to tools A set of experimental pie menus has been included for quick access to many tools and settings. It is not necessary to use these to get things done, but they have been designed to help make certain common tasks easier. - Ctrl-D = The main pie menu. Reveals tools in a context sensitive and spatially stable manner. - D Q = "Quick Settings" pie. This allows quick access to the active layer's settings. Notably, colours, thickness, and turning onion skinning on/off.
2014-10-21Fix T42278: Grease Pencil in Movie Clip Editor can not be erased in Track > ↵Sergey Sharybin
Cursor mode Eraser was not aware of possible transform matrix for the strokes.
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-06-13Code cleanup: use ED_gpencil_ prefix for grease pencilCampbell Barton
2014-04-21View2d: API Cleanup for view<->region conversionCampbell Barton
View2D had some inconsistencies making it error prone in some cases. - Inconstant checking for NULL x/y args. Disallow NULL args for x/y destination pointers, instead add: - UI_view2d_region_to_view_x/y - UI_view2d_view_to_region_x/y - '_no_clip' suffix wasn't always used for non-clipping conversion, switch it around and use a '_clip' suffix for all funcs that clip. - UI_view2d_text_cache_add now clips before adding cache. - '_clip' funcs return a bool to quickly check if its in the view. - add conversion for rectangles, since this is a common task: - UI_view2d_view_to_region_rcti - UI_view2d_region_to_view_rctf
2014-04-07Code cleanup: project gpencil in float coords & delete outdated commentsCampbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-28Proper solution for crash of GP when marker is not exist on current frameSergey Sharybin
2014-02-03Use bool where appropriateJoshua Leung
2014-01-21Code Cleanup: use bool for return values and correct commentsCampbell Barton
also remove CDDM_Check, theres no need for it.
2013-10-31code cleanup: spellingCampbell Barton
2013-10-31remove return argument from wmOperatorType->cancel, was only ever returning ↵Campbell Barton
OPERATOR_CANCELLED.