Clément Foucault
70d73ff500
Eevee: SSS: Fix issue with mac and stencil buffer blitting
...
Adding a workaround in this case: we blit the depth buffer instead of the
stencil buffer and use the copy as the texture. This is slower but at
least it should work.
2018-10-26 10:54:21 +02:00
Clément Foucault
d5fe6e4785
GPU: Add workarounds for buggy glBlitFramebuffer function on macOS + Radeon
...
When calling glBlitFramebuffer on most (if not all) mac that have a GPU
from the Radeon Pro series, the data is not properly copied and only a
subset of the pixels are correctly copied.
This only happens when blitting the depth buffer if the depth buffer is
GL_DEPTH24_STENCIL8.
Changing the depth buffer format to GPU_DEPTH32F_STENCIL8 fixes the issue
but only works if blitting the depth componnent. The stencil componnent
still provoke issues when being copied.
2018-10-26 10:54:21 +02:00
Clément Foucault
48b56481ea
GPUTexture: Add supports for GL_DEPTH32F_STENCIL8 texture format
2018-10-26 10:54:21 +02:00
Clément Foucault
a321f68f64
Workbench: Fix shadows on macOS
2018-10-26 10:54:21 +02:00
Antonioya
9b7dd0a93f
GP: Assign new materials to brushes
...
When create a new material, this must be set to the brushes automatically.
2018-10-26 09:02:28 +02:00
Campbell Barton
6be7a98906
PyAPI: raise error when toolbar panels use tabs
...
Add-ons that register panels in the toolbar can
no longer use 'bl_categories' (tabs).
2018-10-26 15:05:07 +11:00
Campbell Barton
4c75cc488a
Correction for Gizmo.draw_custom_shape utility API
2018-10-26 12:43:40 +11:00
Jacques Lucke
0264c050bf
PyAPI: gpu utility module to create new batches
...
Support the common case of creating batches from python geometry,
a shader and optionally indices.
See D3779
2018-10-26 12:40:43 +11:00
Campbell Barton
ca8fee62ab
Update gpu offscreen PyAPI example
2018-10-26 12:13:03 +11:00
Campbell Barton
065d19e223
Fix parsing single int for uniform_int
...
This worked for float but not int.
2018-10-26 11:59:49 +11:00
Campbell Barton
0f0eafaa0e
Cleanup: minor change to last commit
2018-10-26 11:48:42 +11:00
Campbell Barton
6d2897c7ed
Update Gizmo.draw_custom_shape for API changes
2018-10-26 11:26:39 +11:00
Campbell Barton
a4a6ed1ba3
WM: default tool was being set for space types w/o tools
...
Add mask for space types so we don't accidentally add tools
for space types that don't support it.
2018-10-26 10:46:35 +11:00
Campbell Barton
6c86e1a781
PyAPI: draw handlers now store args in the capsule context
...
Was using the handlers custom-data which crashes
when Blender frees the screen data before Python removes the handler.
2018-10-26 09:30:17 +11:00
Campbell Barton
35991d9990
PyAPI: Temp workaround for crash removing cursor
...
Opening a new file frees the cursors,
add check if the cursor is still valid.
This leaks a Python reference, so a better solution is needed.
2018-10-26 08:49:10 +11:00
Campbell Barton
1d8ba9d618
PyAPI: Make GPUVertFormat() argument optional
2018-10-26 08:06:05 +11:00
Antonioya
b445d57ccf
GP: Add warning when mix Build and Time Offset
2018-10-25 19:15:32 +02:00
Antonioya
4c2561a877
GP: Include option to render layers by view layer
...
This allows to make composition getting each grease pencil layer in a different render output.
2018-10-25 16:50:42 +02:00
Ines Almeida
2b6253175e
Cleanup: comments and unused code
2018-10-25 13:41:32 +00:00
Campbell Barton
869b1a8d6e
Tool System: draw circle-select brush outline
2018-10-25 21:05:47 +11:00
Campbell Barton
9a6d8f809d
Tool System: support custom cursor drawing
2018-10-25 21:05:47 +11:00
Campbell Barton
f606ee7637
PyAPI: initial gpu_extras module (circle drawing utility)
2018-10-25 21:05:47 +11:00
Campbell Barton
6ed9fcbabc
PyAPI: rename GPL VertBuf.attr_fill identifier to id
...
This is used elsewhere in the API and its a common abbreviation.
2018-10-25 20:34:23 +11:00
Alexander Gavrilov
c25fa615d4
Depsgraph: don't lose the update tag on rebuild for op nodes with a name.
...
This fixes a missing update when clearing the Text On Curve
(follow_curve) option of a text object.
2018-10-25 10:32:32 +03:00
Campbell Barton
1a827e0564
Cleanup: move params into their own struct
2018-10-25 17:20:26 +11:00
Campbell Barton
ce08b07a89
PyAPI: take paint-cursor space/region type args
2018-10-25 16:27:13 +11:00
Campbell Barton
6d49b623e2
WM: space, region type filtering for paint cursor
...
Avoids calling poll on mouse-move for unrelated space/region types.
2018-10-25 16:06:47 +11:00
Campbell Barton
46587b3ccb
PyAPI: support for Python paint cursors
2018-10-25 15:31:02 +11:00
Campbell Barton
f2c77558b4
Merge branch 'master' into blender2.8
2018-10-25 15:19:35 +11:00
Campbell Barton
2046817c08
WM: minor changes to cursor API
2018-10-25 15:18:24 +11:00
Campbell Barton
05f2caa210
Merge branch 'master' into blender2.8
2018-10-25 12:26:08 +11:00
Campbell Barton
c9e36e5434
Cleanup: unused vars, correct bad (unused) logic
2018-10-25 12:24:38 +11:00
Campbell Barton
23fdac8672
Cleanup: unused variables
2018-10-25 12:03:34 +11:00
Campbell Barton
bf34f95a9e
UI: move 2d paint panels to topbar & toolsettings
...
Removed 'Tool' and 'Options' panels,
both these settings are quite obscure and
already available in the 'Brush' menu.
2018-10-25 11:15:48 +11:00
Campbell Barton
03e0fd289d
Fix top bar unified color & image paint brush
2018-10-25 09:54:18 +11:00
Antonioya
4082502239
GP: Fix compiler warnings
2018-10-24 22:53:28 +02:00
Alexander Gavrilov
97ec802da7
Depsgraph: fixes for the eval_flags API behavior.
...
- Use the original ID pointer for lookup in DEG_get_eval_flags_for_id.
- When the flags change after a DEG rebuild, tag the object for update.
- Instead of mixing int and short in different places, use uint32_t.
This fixes text not updating when a Follow Curve reference is set.
2018-10-24 22:14:32 +03:00
Bastien Montagne
e66084268c
Fix T56172 Accessing COW data from RNA - Dimension
...
Also fixes T55769 Dimension Not properly work
and T56064 Blender crashes on selecting text-object
We decided to go to the easy way in the end, simply enforcing computing
BBox of all objects when using 'active' depsgraph, and copying back to
orig object (same as transform matrix, etc.).
2018-10-24 17:21:56 +02:00
Antonioya
0ce8ee526f
GP: Add missing title for Armature modifier
2018-10-24 17:10:51 +02:00
Antonioya
9691c32d38
GP: Rename Fixed type in Time modifier
2018-10-24 16:59:13 +02:00
Antonioya
735d6cb8d8
GP: Add new Layer Pass Index filter to modifiers
...
Now the modifier can be filtered using the new layer index.
Also changed panels to put layers and passes filter always at the end of the panel.
2018-10-24 16:46:35 +02:00
Bastien Montagne
a211937892
Fix T57361: Creating a new scene with a full copy doesn't work.
...
BKE_scene_copy() & co. were pretty much doing nothing right...
Was a tough fight, but at least now they should behave a tad better (and
reported issue is fixed).
Proper fix is to fully rewrite that PoS, it was already a mess without
collections, now it's even hairier to handle properly, we need to use
modern new ID handling API for that (and maybe extend it a bit as
needed). But way too late to do that in 2.80.
2018-10-24 14:48:05 +02:00
Sergey Sharybin
91c6beb28a
Cleanup: Remove unused modifiers callback
...
Was only used by subsurf in the past years, it is unlikely
other modifiers will every need this any time soon.
2018-10-24 14:04:29 +02:00
Alexander Gavrilov
547d31c8da
Depsgraph: minor renaming and refactor of API for adding evaluation flags.
2018-10-24 13:45:03 +03:00
Sergey Sharybin
6e3a9b9313
Subsurf: Remove edit mesh modifier callbacks
...
Those were used for partial updates during edit mode, which will
not be possible anymore with OpenSubdiv.
Optimization for OpenSubdiv would be to re-use topology refiner
if topology does not change. But this is something to be done
for both edit and object modes, no need to have separate code
paths for those.
This commit makes OpenSubdiv to properly work in edit mode.
2018-10-24 12:40:05 +02:00
Brecht Van Lommel
f1f0666bfc
Fix Python warnings when running in background.
2018-10-24 11:14:49 +02:00
Brecht Van Lommel
727d6644da
Cleanup: fix compiler warnings.
2018-10-24 11:14:49 +02:00
Antonioya
e1a66201da
GP: Add layer pass index to time modifier
2018-10-24 11:03:09 +02:00
Jacques Lucke
341306995b
Fix: buffer overflow when creating gpu.types.GPUIndexBuf
2018-10-24 10:57:46 +02:00
Antonioya
5af716620a
GP: Add new modes to Time Offset modifier
2018-10-24 10:32:03 +02:00