Jacques Lucke
684739c6f9
Fix: missing cache invalidation when the active vertex group changed
...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3716
2018-09-21 16:20:32 +02:00
Clément Foucault
d2dba449fe
Edit Mesh Mode: Increase Face dot Z bias
2018-09-21 15:45:03 +02:00
Clément Foucault
37fea2c0f0
Edit Mode: Merge Xray and "Limit selection to visible" options behaviour
...
We now treat Xray as being the mode where Limit selection to visible is off.
If Xray is OFF, Limit selection to visible is considered ON.
To allow 'see through wires' with solid shading (not Xray shading) we still
draw solid shading if Xray is ON with Xray Alpha set to 1.0.
2018-09-21 15:45:03 +02:00
Clément Foucault
3523958de9
DRW: Add back wireframe mode
...
This is using the existing engine (workbench forward) with 0.0 xray_alpha
and forcing wireframes on all objects.
There is no workflow/shortcut changes in this commit.
2018-09-21 15:45:03 +02:00
Clément Foucault
667add5fc5
Eevee: Implement Wireframe Node
...
This implementation is a bit hacky but match cycles pretty close.
If pixel size is not enabled, it will use the geom shader to
compute distances between vertices. This will have a cost.
Implementation is a bit hacky in gpu_codegen to make the geom shader works
in an optional manner.
2018-09-20 17:53:47 +02:00
mano-wii
5c20161f81
Fix compilation error in the stick bones shader for some Intel gpus.
2018-09-20 12:11:23 -03:00
Dalai Felinto
cffae36381
Fix build for MSVC: Remove trailing double semicolon
...
Not sure why but MSVC is complaining for some of those.
In particular for the struct in BKE_subdiv_ccg.h. Those were the ones
crashing here..
2018-09-20 14:59:55 +00:00
Clément Foucault
73ac72fa89
DRW: Fix crash when new shader requires 0 customdata layers
...
It was using last cache->auto_layer_len which led to a buffer overflow.
2018-09-19 20:02:12 +02:00
Clément Foucault
7ad8272952
DRW: Only trash UV and tangent data when using BKE_MESH_BATCH_DIRTY_SHADING
...
This improves the problem encountered when animating materials on static
meshes but does not fix the core issue. See T55326.
2018-09-19 20:02:12 +02:00
Brecht Van Lommel
6b433f4eb3
Merge branch 'master' into blender2.8
2018-09-19 18:20:50 +02:00
Antonioya
a349527981
GP: Fix stupid mistake
2018-09-19 12:15:53 +02:00
Antonioya
25f25a6f30
GP: Remove unneeded flag
2018-09-19 12:15:05 +02:00
Campbell Barton
f35e9f047a
Merge branch 'master' into blender2.8
2018-09-19 12:14:36 +10:00
Campbell Barton
345c348262
Cleanup: style
2018-09-19 10:29:57 +10:00
Antonioya
e6766287d6
Fix T56827: Crash when enable onion skin in multiwindow
...
The problem was the cache was not set as dirty if one of the window had the overlay disabled.
2018-09-18 23:18:48 +02:00
Clément Foucault
93780411e9
LookDev: Use theme background instead of world color
...
This is much less confusing than relying on an hidden parameter (the world
color) that you can only see if you disable the world node tree.
2018-09-18 22:18:49 +02:00
Clément Foucault
5aa3e33565
LookDev: Use black background color if world is not present
2018-09-18 21:39:53 +02:00
Campbell Barton
5ae531d813
Cleanup: spelling
2018-09-18 16:35:13 +10:00
Clément Foucault
731d0d8d0f
Eevee: Fix shader linking error with volumetric shaders
2018-09-17 15:08:14 +02:00
Clément Foucault
3da5b03b8a
Eevee: Fix crash when using refraction with alpha clip blend mode
2018-09-17 14:46:22 +02:00
Clément Foucault
68f139db0d
Fix T56800: Reflection Plane in Eevee crashes Blender
2018-09-17 12:20:51 +02:00
Clément Foucault
ad8b187a53
Fix T56803: Indirect lightning bake crashes Blender
2018-09-17 12:20:51 +02:00
Clément Foucault
5bf32f3337
Fix T56801: Enabling smoke crashes Blender.
2018-09-17 12:20:51 +02:00
Clément Foucault
424aeda112
Object Mode: Draw object center after the floorgrid
2018-09-14 18:32:04 +02:00
Clément Foucault
1f1d5e1dd2
Object Mode: Make Flat object selectable in ortho view ...
...
... when wireframe is enabled
2018-09-14 18:32:04 +02:00
Clément Foucault
b62d140be9
Object Mode: Make Flat object outline visible in orthographic view
2018-09-14 18:32:04 +02:00
Antonioya
cfaf92c079
GP: Fix T56802 - Add/Delete Vertex Group crashes
2018-09-14 16:09:10 +02:00
Clément Foucault
e37479ad89
GPUBuffers: Rework support for pbvh grids + fast navigate
...
Flat shaded grids are now rendered as a long triangle strip with
degenerate triangles.
Smooth shaded grids are not changed.
Also add back fast navigate. The only difference with 2.79 is that fast
navigate + flat shading will show slitly "incorrect" smooth face. But that's too
much effort to fix for what it is.
2018-09-14 12:20:01 +02:00
Sergey Sharybin
39fabaddfd
GPU: Remove residue of OpenSubdiv
...
Was done more like a hack on top of old drawing pipeline.
Should be re-implemented to fit new draw manager closer.
2018-09-12 14:30:28 +02:00
Campbell Barton
6c6c3bad02
Cleanup: style
2018-09-12 05:57:31 +10:00
Clément Foucault
57f9e31bf4
DRW: Convert common theme color to linear for viewport render
...
This is not 100% correct (it should use a transfer function depending
on the display profile) but this is already much better than using srgb.
2018-09-11 17:05:16 +02:00
Clément Foucault
998a804358
DRW: Don't highjack all debug values (cont)
2018-09-11 16:34:52 +02:00
Clément Foucault
1a590c7a1c
DRW: Don't highjack all debug values
2018-09-11 16:27:55 +02:00
Clément Foucault
5a7c3d5a08
Eevee: Prepare for fullres tracing
2018-09-11 16:15:43 +02:00
Clément Foucault
aa5c543a7f
Eevee: Fix downsampling shader with textureGather
...
This was leading to issues with all raytracing and AO algorithm.
Fix T55619
2018-09-11 16:15:43 +02:00
Antonioya
43abc5dabf
GP: Use original datablock and not evaluated version
...
This is required to avoid COW delay while drawing.
2018-09-11 10:33:29 +02:00
Antonioya
3319f80e03
GP: Fix performance problem with big files
...
During drawing, the depsgrah was tagged to update and this produced a full copy of the datablock. This tag was done in order to get the right data in drawing engine, but this added a great overhead while drawing and the response of the pen was not good.
Now, the depsgraph is not tagged and the drawing engine uses the original copy data of the buffer datablock. This is not a problem because only can draw in one window at time.
2018-09-10 20:24:37 +02:00
Clément Foucault
a01fe76ded
Eevee: Fix assert when using transparent shadows
...
Was missing some UBO bindings.
2018-09-10 18:05:11 +02:00
Clément Foucault
a4b18bd1b9
Fix T56627: Crash because of incomplete LightCache
2018-09-10 18:05:11 +02:00
Clément Foucault
5e7a56dc64
Eevee: Cleanup DoF implementation
2018-09-10 18:05:11 +02:00
Clément Foucault
ec64cad5a8
Eevee: Lookdev: Fix memleak
2018-09-10 18:05:11 +02:00
Clément Foucault
6b551c0b8c
Eevee: Depth of Feild: Fix ringing issue of background objects
...
There was an issue caused by Antialiasing being done after DoF. Move TAA
after DOF and Motion Blur.
Also certain pixel with lower CoC would be spread all over the background
because the neighbooring pixel have higher CoC. So we need to apply some
bilateral filtering when downsampling. Currently we limit the influence of
neighbor pixels with a CoC inside the range [MaxCoC-2, MaxCoC].
2018-09-09 23:26:14 +02:00
Antonioya
d7d4baa50f
GP: missing change in previous commit
2018-09-09 11:48:02 +02:00
Antonioya
d5d354b1a2
GP: Fix scale problem when object is parented
...
The stroke was not scaled as expected in child objects.
2018-09-09 11:41:25 +02:00
Bastien Montagne
5a1e9e5af8
Fix T56722: Crash - Entering mesh Edit Mode.
...
Seriously...
2018-09-08 11:19:07 +02:00
Sergey Sharybin
cbab3e1e90
Cleanup: Unused undef
...
That symbol is never defined.
2018-09-07 11:04:54 +02:00
Clément Foucault
5a134910b1
Fix T56705: Z axis do not displays in side views
2018-09-06 15:00:44 +02:00
Clément Foucault
b2d82d096a
Fix T56706: Lattice crash when enter in edit mode
2018-09-06 15:00:44 +02:00
Campbell Barton
1450a37555
CMake: add missing headers
2018-09-06 21:23:25 +10:00
Campbell Barton
fa6ed6259c
Cleanup: style
2018-09-06 10:47:46 +10:00