Campbell Barton
49baf15a35
Merge branch 'master' into blender2.8
2018-03-07 14:31:53 +11:00
Campbell Barton
737a5efff4
Cleanup: edit-mode undo API
...
Move function descriptions into the struct,
minor improvements to variable naming,
use convention of 'g_' prefix for static vars.
2018-03-07 14:00:02 +11:00
Clément Foucault
4f23e13001
DRW: Fix memory leak.
...
This prevents the creation of a new job if no job is running.
2018-03-07 01:40:40 +01:00
Clément Foucault
cfba75a21a
Eevee: Fix volume rendering glitches.
...
The bug was due to the Halton function returning uninitialized value for 0 iteration.
2018-03-07 01:40:40 +01:00
Clément Foucault
aa07660201
Eevee: Fix garbage on the first frames when enabling volumetrics.
...
Was cause by newly added shader deferred compilation.
2018-03-07 01:40:40 +01:00
Germano
267e816b9a
Draw Manager: Simplify the algorithm that extract the BoundingSphere of a Frustum
...
The idea is to separate the most common case from symmetrical frustum. And to make a simple but efficient calculation.
The new radius is usually 98% the size of the radius size of the asymmetric solution.
Thanks to @fclem for reviewing the patch on IRC
2018-03-06 19:27:43 -03:00
Clément Foucault
faf70e1e64
Eevee: Fix crash with volumetrics + default mat + alpha blend
2018-03-06 16:52:06 +01:00
Clément Foucault
d5ecadd643
Eevee: Fix Cascaded shadowmap setup.
...
It was getting the wrong matrice because of the point light override.
2018-03-06 16:45:23 +01:00
Clément Foucault
6b5b61eb8c
DRW: Fix DRW_viewport_matrix_override_set_all function.
2018-03-06 16:45:23 +01:00
Clément Foucault
4e7d9b7a98
Eevee: Fix probes not working after a world update.
2018-03-06 16:45:23 +01:00
Clément Foucault
f8b63b564d
Eevee: Update to support shader deferred compilation.
...
World probe is tagged to refresh when it it's shader is updated.
Probes are recomputed only after all meshes shaders have been compiled.
2018-03-06 16:45:23 +01:00
Clément Foucault
2faa809ea6
GPU: Fix typo.
2018-03-06 16:45:23 +01:00
Clément Foucault
b55077a506
DRW: Fix broken grid in ortho view.
2018-03-06 16:45:23 +01:00
Clément Foucault
aa02c099f9
Eevee: fix wrong sizeof.
...
Like really? wtf dude? *self face slapping*
2018-03-06 16:45:23 +01:00
Clément Foucault
94fadd00d8
DRW: Shader Deferred compilation: Use a wmJob for threading.
...
Also get rid of the static var and initialization.
This enables the user to see the progress on the info header.
Closing blender or reading a file also kill the job which is good.
Unfortunatly, this job cannot be interrupt by users directly. We could make it interruptible but we need a way to resume the compilation.
2018-03-06 16:45:22 +01:00
Clément Foucault
3a209c2857
DRW: Deferred compilation initial implementation.
2018-03-06 16:44:04 +01:00
Clément Foucault
f14cbc0d07
Material: Free gpumaterials before the notree.
...
This is because gpumaterials can contain references to the tree when doing lazy compilation.
2018-03-06 16:44:04 +01:00
Clément Foucault
162ef15da6
Eevee: Fix bad framebuffer when changing probe resolution.
2018-03-06 16:44:04 +01:00
Clément Foucault
b7414d357a
Screen: Fix screen layout preview render.
2018-03-06 16:44:04 +01:00
Clément Foucault
a6e6d7e022
Eevee: More use of DRW_viewport_matrix_override_set_all
2018-03-06 16:44:04 +01:00
Clément Foucault
2af6520007
DRW: Fix occlusion culling.
2018-03-06 16:30:27 +01:00
Sergey Sharybin
76122bc8f0
Cycles: Fix crash when building with no shading systems
2018-03-06 13:04:28 +01:00
Sergey Sharybin
ec904ed327
Cycles: Cleanup, indentation
2018-03-06 13:04:28 +01:00
Campbell Barton
8d572e8764
Cleanup: unused var
2018-03-06 22:42:32 +11:00
Campbell Barton
85b68aaf7f
Merge branch 'master' into blender2.8
2018-03-06 20:04:02 +11:00
Campbell Barton
a5a0dcec90
Merge branch 'master' into blender2.8
2018-03-06 19:13:41 +11:00
Campbell Barton
4d86a432da
Utility to enter sculpt mode
2018-03-06 19:11:19 +11:00
Germano
dd611dd0b8
Eevee: Optimize shadows drawing
...
In the gpus like `AMD Radeon HD 7570M` and `Intel(R) HD Graphics 4000` this solution improves performance a hundreds or even thousands of times depending on the resolution.
Reviewed By: @brecht and @fclem
Differential Revision: https://developer.blender.org/D3095
2018-03-05 22:03:14 -03:00
Arto Kitula
b5b5260464
Fix T54234, add BLENDER_VERSION_CHAR to .plist
2018-03-06 02:36:29 +02:00
Campbell Barton
d9d3ed16a8
Fix T53206: Array modifier doesn't merge vgroups
...
Vertex group remapping utility function,
now shared between object join and array modifier cap-ends.
Weights which don't exist are removed.
D3092 by @Foaly
2018-03-06 09:57:41 +11:00
Sergey Sharybin
84a154ac68
Merge branch 'master' into blender2.8
2018-03-05 16:14:46 +01:00
Sergey Sharybin
df267bd4c4
Sequencer: Expose read-only FPS property for movie-type strips
...
Main purpose is to make it possible to cover FPS detection with regression test.
But it might also be handy for some other scripters.
Thanks Campbell for review!
2018-03-05 15:01:23 +01:00
Campbell Barton
ae9beb1cea
UI: rename panel 'Workspace Add-ons'
...
Show/Hide is limited to menus
2018-03-06 00:59:44 +11:00
Sergey Sharybin
caa0b0fadf
Fix T54204: Wrong selection on Clean Tracks (Motion Tracking)
...
A mistake in a fix for T53612.
Regression in 2.79a, candidate for 2.79b :S
2018-03-05 12:00:25 +01:00
Sergey Sharybin
63d8ccf9ff
Fix T54225: Blur node stopped working when Map Range was fed with image
...
The issue was happening with fast Gaussian blur, and caused by NaN value pixels
in the input buffer.
Now made it so Map Range output does not produce NaN, by returning arbitrary
value of 0. Still better than NaN!
2018-03-05 11:44:42 +01:00
Campbell Barton
9593a62746
Cleanup: left wrong comment in
2018-03-05 17:03:18 +11:00
Campbell Barton
f3018322c0
Fix T53478, T53430: Sequencer cut edge case fails
...
Previous fix for T53430 caused T54200.
The edge case for soft & hard cuts weren't working,
where the strip used start/end-still & the frame was placed exactly on
the start/end of of the sequence content.
T54200 fixed the end-still case but broke hard-cuts for all other cases.
This fixes the case for soft/hard cuts with/without start/end-still.
2018-03-05 16:58:01 +11:00
Campbell Barton
327985e887
Revert "Fix T53430: Cut at the strip end fails w/ endstill"
...
This reverts commit 855799ecc1 .
Caused T54200
2018-03-05 16:58:01 +11:00
Campbell Barton
807663742b
Error passing context arg to marker menu
...
own mistake in 6981861fcf
2018-03-05 14:10:43 +11:00
Brecht Van Lommel
3607b4eb52
Fix LLVM/OSL library detection on macOS to prefer own OSL libraries.
2018-03-04 07:40:21 +01:00
Brecht Van Lommel
74f3fb746a
Fix Clang compiler detection on macOS.
...
"AppleClang" was not properly detected here. Now make the compiler ID
test a bit less compact but consistent with other code.
2018-03-04 07:39:04 +01:00
Brecht Van Lommel
2adece9fbb
Merge branch 'master' into blender2.8
2018-03-03 14:58:14 +01:00
Brecht Van Lommel
dab20bd41f
Fix T54211: OpenGL debug error message in texture draw mode.
...
Quite harmless and won't be a problem in 2.8.
2018-03-03 14:57:02 +01:00
Campbell Barton
8d575899a1
WorkSpace: use existing mode data w/ scene-switch
...
Check if mode data exists before attempting to change the modes.
2018-03-03 16:39:57 +11:00
Campbell Barton
b8f7538348
WorkSpace: avoid redundant notifiers w/ mode sync
2018-03-03 16:24:35 +11:00
Campbell Barton
d111f33008
WorkSpace: always change modes w/ the same active object
2018-03-03 12:28:42 +11:00
Brecht Van Lommel
94b99949eb
Fix T54202: Cycles crash rendering empty mesh volume after recent optimization.
2018-03-02 23:10:27 +01:00
Dalai Felinto
3fc2d122c4
Fix texture panel for Cycles
...
I keep reading that texture painting is not working yet. However it is fully
working. We even have a "Full Shading" option in the viewport display panel.
Clay/EEVEE still need their UI figured out. But the context itself is doing
its part after this patch, and at least for Cycles it's working like 2.79.
2018-03-02 17:19:04 -03:00
Brecht Van Lommel
b6fe80ca19
Fix Cycle standalone build.
2018-03-02 19:56:22 +01:00
Clément Foucault
c43d51c1c2
Eevee: Make use of culling when rendering the shadowmaps.
2018-03-02 18:35:59 +01:00