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
2019-11-21Clay Strips: Input pressure curve and new defaultsPablo Dobarro
By squaring the pen pressure and disabling BRUSH_SPACE_ATTEN the brush feels like it has a bigger strength range, wich makes it easier to control when applying less pressure in order to smooth sculpted surfaces. Each brush should have a custom input pressure curve by default to get an optimal behaviour and make all brushes consistent, but that is going to take some time to get it right. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6214
2019-10-24Fix crash drawing the paint cursor over the redo regionCampbell Barton
Also fix CTX_wm_region_view3d which didn't check the region type.
2019-10-15Fix incorrect brush falloff flag useCampbell Barton
Harmless currently since they're the same value, would fail if other options were added.
2019-10-08Sculpt: support automasking, pose and mask expand for multiresBrecht Van Lommel
These were the last remaining new sculpt tools that did not support multires. Performance could be improved still, but it should work. Fixes T68899
2019-10-07Cleanup: rename some sculpt variables for clarityBrecht Van Lommel
2019-10-07Sculpt/Paint: Invert curve alpha overlayPablo Dobarro
Reviewed By: billreynish Differential Revision: https://developer.blender.org/D5998
2019-10-01Sculpt: enable 3D paint cursor for multiresBrecht Van Lommel
2019-10-01UI: Changes to Paint CursorsHarley Acheson
Changes to cursors that can be used for painting and sculpting. Differential Revision: https://developer.blender.org/D5951 Reviewed by Brecht Van Lommel
2019-09-30UI: Use paint crosshair cursor in all paint & sculpt modesWilliam Reynish
Currently, we use the crosshair cursor in Sculpt mode, but not in the other paint modes. - Sculpt Mode: This crosshair cursor is too weighty. - Texture, Weight, Vertex Paint: Using the arrow cursor for painting is not right. This commit makes the following changes: - Use the new special paint crosshair instead - Use this cursor in all paint modes, not just Sculpt Reviewed by: Brecht Differential Revision: https://developer.blender.org/D5940
2019-09-27Sculpt: Sculpt cursor UX improvementsPablo Dobarro
This commit introduces the following changes: - Invert the direction of the brush strength WM control. It was working in the opposite direction to any other control in Blender. Now dragging to the right increases the strength. - Increase the alpha of the cursor - Remove the font shadow of the numbers in the WM control. It was adding too much visual noise when rendered on top of the brush alpha - Add a second circle to preview the strength in the cursor - Increase the resolution of the cursor circles. Now they look smooth even when working with large brush sizes. - Add a line preview to display the brush curve - Don't offset the cursor preview when changing size and strength Reviewed By: billreynish, brecht Differential Revision: https://developer.blender.org/D5889
2019-09-27Sculpt: Pose brush origin offsetPablo Dobarro
With the previous behavior, it was impossible to manipulate areas with a lot of complex shapes like fingers, as the pose origin was calculated only with the topology inside the radius. With pose offset, the previous method is used to calculate the direction of the "bone", and an extra offset is added on top of it. This way you can set the pose origin in the correct place in this kind of situations. The pose factor grows to fit the new rotation origin. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D5841
2019-09-26WM: clean up cursors constants and codeBrecht Van Lommel
There was a mix of old and new constants. Now have one list of WM_CURSOR_* cursor types, using GHOST standard cursors when available and otherwise falling back to our custom cursors. Ref D5197
2019-09-26Fix (unreported) (2d) paint cursor always drawing in half alphaPhilipp Oeser
Own mistake in rB078fcc62534c (should only switch to half alpha if we draw the second pressure circle as well...)
2019-09-26Fix T70260: Stencil Paint Overlay BrokenPhilipp Oeser
own error in rB078fcc62534c (doing the overlay only in 3d painting)
2019-09-24Fix T70140: Topology Automasking and 2D Falloff don't work correctly togetherPablo Dobarro
Reviewed By: jbakker Maniphest Tasks: T70140 Differential Revision: https://developer.blender.org/D5878
2019-09-20Fix paint cursor drawing assertsPhilipp Oeser
The new paint cursor (introduced in rBe0c792135adf) mixed 3d and 2d drawing leading to asserts [e.g. when tablet pressure sensitivity was enabled for size, see D5820 also]. We could get away with always drawing in 3D [using vertformat with comp_len 3 / GPU_SHADER_3D_UNIFORM_COLOR / imm_draw_circle_wire_3d], even if in the Image Editor, but this patch clearly separates what is drawn in 3d and what is in 2d. part of T69957 Reviewers: jbakker Differential Revision: https://developer.blender.org/D5836
2019-09-18Fix excessive dependency graph evaluation while painting strokesBrecht Van Lommel
Particularly noticeable when vertex painting with a subsurf modifier. In some cases every sculpt or paint stroke step would evaluate the dependency graph. This should only happen for redraws. Now more selectively choose if the dependency graph should be evaluated to initialize the view context. Doing it in the view context evaluation is somewhat hidden, now it's more explicit. Differential Revision: https://developer.blender.org/D5844
2019-09-18Fix T69984: Cursor curve Alpha doesn't display curves other than CustomPablo Dobarro
Reviewed By: jbakker Maniphest Tasks: T69984 Differential Revision: https://developer.blender.org/D5823
2019-09-17Fix paint cursor crashPhilipp Oeser
The new paint cursor (introduced in rBe0c792135adf) could crash for 2d painting without an active object. Note there are still drawing asserts (because we are mixing 2d and 3d drawing in 'paint_draw_cursor'), but these will be handled in a seperate commit. part of T69957 Reviewers: jbakker Maniphest Tasks: T69957 Differential Revision: https://developer.blender.org/D5820
2019-09-17Sculpt: Add pose origin preview to the Pose BrushPablo Dobarro
This commit makes the pose brush easier to control. It also includes a refactor of the pose brush init code. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D5761
2019-09-17Fix part of T69728: drawing glitches with sculpt dynamic mesh previewBrecht Van Lommel
Depth test must default to off for drawing outside the 3D viewport and overlays like cursors.
2019-09-14Cleanup: use const args, variablesCampbell Barton
2019-09-10Cleanup: no need to add Brush.flag2Campbell Barton
Also use 'use_' prefix for RNA booleans.
2019-09-10Sculpt: Grab Active Vertex and Dynamic Mesh PreviewPablo Dobarro
Grab active vertex snaps the maximum strength of the grab brush to the highlighted active vertex, making it easier to manipulate low poly models or meshes with subdivision surfaces. Dynamic Mesh Preview generates a list of connected vertices from the active vertex and draws them from the cursor code. This helps to visualize the real geometry the user is manipulating from sculpt mode when there are active modifiers. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5646
2019-09-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).
2019-09-07Cleanup: style, spellingCampbell Barton
2019-08-30Fix possible crash with new sculpting cursor, due to stack overflowBrecht Van Lommel
2019-08-30Sculpt: New brush cursor, active vertex and normal radiusPablo Dobarro
This commit includes the new brush cursor, active vertex updates and the normal radius brush property for all sculpt brushes. -The new brush cursor previews the real stroke radius over the mesh and the sampled sculpt normal. -The active vertex is used in sculpt tools and brushes as a starting point for an operation, similar to a preselection. It is also mirrored following the enabled symmetry options to preview the stroke symmetry. -The normal radius brush property limits the radius that is going to be used to sample the sculpt normal and area center. It controls how closely the cursor follows the surface and it improves the behavior of most brushes, making them suitable for hard surface sculpting. Reviewed By: campbellbarton, brecht Differential Revision: https://developer.blender.org/D3594
2019-08-06Cleanup: use BKE_ prefix for BKE_colortools.hCampbell Barton
2019-07-30BLI_task: Cleanup: rename some structs to make them more generic.Bastien Montagne
TLS and Settings can be used by other types of parallel 'for loops', so removing 'Range' from their names. No functional changes expected here.
2019-07-16Fix paint curve not drawing selection colors properlyBrecht Van Lommel
This code is not guaranteed to run with any specific space theme, so pass it explicitly.
2019-04-29Cleanup: spellingCampbell Barton
2019-04-22Cleanup: style, use braces for editorsCampbell Barton
2019-04-21Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-16Clenaup: odd use of ternary operatorsCampbell Barton
2019-04-09Cleanup: spellingCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-29Cleanup: replace attrib w/ attrCampbell Barton
Also rename GPUVertexAttribs to GPUVertAttrLayers, avoids confusion with GPUVertAttr which isn't closely related.
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2018-12-24Fix/cleanup typos and such in UI messages (and some comments).Bastien Montagne
2018-12-24Fix T59722: stencil texture overlay not working on macOS.Jonathan Merritt
2018-11-14Merge branch 'master' into blender2.8Campbell Barton
2018-11-14Cleanup: naming for paint modesCampbell Barton
- Rename ePaint* -> PAINT_MODE_*. - Use PAINT_OVERLAY_ prefix for eOverlayControlFlags.
2018-11-07Merge branch 'master' into blender2.8Campbell Barton
2018-11-07Cleanup: renmae ePaintTexture(Projective) -> 3DCampbell Barton
Matches ePaintTexture2D, less verbose.
2018-10-25WM: space, region type filtering for paint cursorCampbell Barton
Avoids calling poll on mouse-move for unrelated space/region types.
2018-10-17Fix sculpt curve stroke paintDalai Felinto