Campbell Barton
6c43490616
Vertex Paint: use view normal w/ 2D falloff
...
When projecting to the view, cull faces pointing
away from the view normal.
2017-10-06 19:10:33 +11:00
Campbell Barton
8ef757df3d
Vertex Paint: use brush front-face setting
...
Follow sculpt mode more closely by using the brush front-face option.
2017-10-06 18:57:37 +11:00
Campbell Barton
082987ec74
Sculpt: use tube falloff when calculating normals
...
Also apply 2D clamping for other tools when the option is set.
2017-10-06 18:34:05 +11:00
Campbell Barton
3282218983
Sculpt: clamp normal to plane w/ projected falloff
...
Allows for editing outlines w/o pushing geometry towards/away from
the view.
2017-10-06 17:38:56 +11:00
Campbell Barton
327bb6e543
Fix ruler access from search pop-up
...
D2831 by @1xundoredo
2017-10-06 17:13:44 +11:00
Campbell Barton
c454d816a9
Cleanup: style
2017-10-06 16:56:41 +11:00
Brecht Van Lommel
c82efd3276
Fix T52514: don't clear filename when dropping directory path in file browser.
2017-10-06 00:18:57 +02:00
Brecht Van Lommel
64f8cc3e7d
Fix T52998: disabled menu entries responding to key shortcuts.
2017-10-05 19:12:05 +02:00
Campbell Barton
d8509b349d
Sculpt Mode: 2D falloff option
...
This makes brush influence into a tube instead of a sphere.
It can be used along the outline of a mesh to adjust it's silhouette.
Note that all this takes advantage of changes from vertex paint,
from testing this seems useful so exposing from the brush options.
2017-10-06 01:20:31 +11:00
Sergey Sharybin
e1e452c062
Draw manager: Avoid unneeded memory malloc/free when attempting to create missing uniform
2017-10-05 17:16:37 +05:00
Campbell Barton
56a07ba706
Vertex Paint: apply when cursor isn't over faces
...
This behavior makes more sense for sculpt, less so for painting.
Restores non PBVH behavior, adding `BKE_pbvh_find_nearest_to_ray` -
similar to ray-cast except it finds the closest point on the surface.
2017-10-05 21:21:01 +11:00
Campbell Barton
0badb6c804
Cleanup: rename dist -> depth
...
Prepare to add code that stores distance to the ray, avoid confusion.
2017-10-05 21:09:12 +11:00
Campbell Barton
21d91de8e7
Cleanup: remove unused struct member
...
Merged with soc-2016-pbvh-painting, no longer needed.
2017-10-05 17:52:05 +11:00
Campbell Barton
82d6a30015
Disable cursor drawing while navigating
...
Was performing ray-casts in sculpt mode on every update.
2017-10-05 17:35:46 +11:00
Campbell Barton
775c773cf4
Fix sculpt secondary color missing some brushes
...
D2841 by @uvwxyz w/ edits
2017-10-05 12:59:22 +11:00
Campbell Barton
3c67efbbc5
Cleanup: use bool for brush checks
2017-10-05 12:59:18 +11:00
Campbell Barton
974053f7e9
Fix brush reset (missing notifier)
...
D2843 by @uvwxyz
2017-10-05 12:32:24 +11:00
Campbell Barton
96477be3b6
PyAPI: fast keyword parsing for bpy modules
...
No functional changes.
2017-10-05 10:52:18 +11:00
Campbell Barton
d27ca066e7
Fix passing the same argument twice to BLI_strncpy
2017-10-05 10:50:51 +11:00
Campbell Barton
ffb190244c
Fix setting the operator name in Py operator API
2017-10-05 10:50:51 +11:00
Clément Foucault
31820d0109
Eevee : Fix T52991
2017-10-04 21:31:47 +02:00
Ray Molenkamp
57d7e5b6ee
Fix T42489 and T52936: Loading blend with minimized window results in crash or empty screen on windows.
...
Reviewed By: @brecht , @sergey
Differential Revision: http://developer.blender.org/D2866
2017-10-04 11:44:22 -06:00
Sergey Sharybin
63c472b4f9
Merge branch 'master' into blender2.8
2017-10-04 22:18:05 +05:00
Campbell Barton
296757804c
Fix error copying smoke modifier uv layer
2017-10-05 02:44:02 +11:00
Bastien Montagne
9609828000
Tssst, we use USA english, not Oxford one... :P
2017-10-04 12:42:33 +02:00
Bastien Montagne
a22af1a84b
Fix i18n messages extraction script, and a few more UI messages...
2017-10-04 12:39:06 +02:00
Sergey Sharybin
b22b2c783d
Fix T52982: Join operator with context override crashes Blender 2.79
2017-10-04 15:00:05 +05:00
Campbell Barton
d1dfed206b
Fix T52923: Circle diameter is in fact radius
2017-10-04 18:01:53 +11:00
Campbell Barton
08f728a3e9
Cleanup: redundant casts
2017-10-04 16:52:55 +11:00
Campbell Barton
92272f56e6
PyAPI: fast keyword parsing for __import__
...
No functional changes.
2017-10-04 15:54:41 +11:00
Campbell Barton
728cffa9ce
PyAPI: fast keyword parsing for bpy.props
...
No functional changes.
2017-10-04 15:13:52 +11:00
Bastien Montagne
ad22d29dac
Some UI/messages fixes.
2017-10-03 21:32:46 +02:00
Clément Foucault
9422db7796
Eevee: Some changes to the Render / Render layers settings panel.
...
- Separate the Post Processes settings into sub panel.
- Rename "Viewport Anti-Aliasing" to sampling & super-sampling as it also reduce the noise of other effects.
- Remove Temporal Anti-Aliasing toggle and make it always active unless the number of samples is 1.
2017-10-03 18:30:56 +02:00
Clément Foucault
57c323b5d3
Object Mode : Fix probe paralax display.
2017-10-03 18:30:56 +02:00
Clément Foucault
f40fa55b58
DRW: Fix Feedbackloop warning.
2017-10-03 18:30:56 +02:00
Campbell Barton
cbe07d980c
Python: bump minimum version to 3.6
2017-10-03 23:50:34 +11:00
Campbell Barton
7ae02c2ddb
Cleanup: remove unused vpaint projection handle
2017-10-03 23:43:30 +11:00
Campbell Barton
a4721c0504
Weight Paint: blend smear tool
2017-10-03 23:35:30 +11:00
Campbell Barton
6a7dc3348a
Vertex Paint: fix feedback loop w/ smear tool
...
Was reading and writing from same array,
this also makes smear thread-safe.
2017-10-03 23:07:13 +11:00
Bastien Montagne
314d93838e
Fix bplayer (c)
2017-10-03 12:31:51 +02:00
Alexander Gavrilov
7c2d5eaacb
Change weigth paint accumulate mechanics to fix problems with mirroring.
...
Restoring weights is problematic when the stroke overlaps its mirror.
It's better to simply compute the new weight based on the saved data
rather than restoring things, and check that the change is monotonic.
This way is also closer to how things worked before the merge.
2017-10-03 12:41:37 +03:00
Campbell Barton
975ed05edb
Vertex Paint: smear got wrong last-location
2017-10-03 20:19:59 +11:00
Campbell Barton
7640d5e92a
Error in last commit, weight must be set for non-accumulate
2017-10-03 19:24:02 +11:00
Campbell Barton
f4b1f9b925
Vertex Paint: remove accumulate (soc-2017-vertex_paint)
...
This secondary accumulation option accumulated brush falloff.
The same option in image painting accumulates color
as vertex paiht 'Spray' does.
Giving this option different behavior for vertex paint seems strange.
Also this is basically increasing falloff over time.
Remove the new code, expose existing 'Spray' as 'Accumulate'
to match other paint modes.
2017-10-03 19:09:28 +11:00
Sergey Sharybin
2bfa061a15
Merge branch 'master' into blender2.8
...
Notes:
- Changes in paint_vertex.c were simple to merge, mainly related on passing
evaluation context.
- Conflicts in EditDM and drawmesh.c are solved using code from blender2.8
branch. Those areas are deprecated and not to be used in final release.
However, it's possible that some reference code from master is lost, so
keep attention when adding alpha support for vertex painting.
2017-10-03 12:59:06 +05:00
Campbell Barton
515e69999e
Weight Paint: don't set weight w/ average brush
...
Also use 'const' for brush.
2017-10-03 18:43:18 +11:00
Campbell Barton
2b3ff61d80
Correct int division in last commit
2017-10-03 17:36:55 +11:00
Campbell Barton
6092ded127
Weight Paint: add some color blending modes
...
While these mostly make sense for color,
there is no harm in supporting.
2017-10-03 17:24:29 +11:00
Clément Foucault
2136942916
Eevee : Fix grid black fill.
2017-10-02 22:17:20 +02:00
Clément Foucault
2bd36338d3
Gawain : Add workaround to fix bad sync of the program_in_use flag.
2017-10-02 22:16:50 +02:00