a321f68f64
Workbench: Fix shadows on macOS
2018-10-26 10:54:21 +02:00
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
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
065d19e223
Fix parsing single int for uniform_int
...
This worked for float but not int.
2018-10-26 11:59:49 +11:00
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
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
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
1d8ba9d618
PyAPI: Make GPUVertFormat() argument optional
2018-10-26 08:06:05 +11:00
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
2b6253175e
Cleanup: comments and unused code
2018-10-25 13:41:32 +00:00
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
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
1a827e0564
Cleanup: move params into their own struct
2018-10-25 17:20:26 +11:00
ce08b07a89
PyAPI: take paint-cursor space/region type args
2018-10-25 16:27:13 +11:00
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
46587b3ccb
PyAPI: support for Python paint cursors
2018-10-25 15:31:02 +11:00
f2c77558b4
Merge branch 'master' into blender2.8
2018-10-25 15:19:35 +11:00
2046817c08
WM: minor changes to cursor API
2018-10-25 15:18:24 +11:00
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
4082502239
GP: Fix compiler warnings
2018-10-24 22:53:28 +02:00
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
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
9691c32d38
GP: Rename Fixed type in Time modifier
2018-10-24 16:59:13 +02:00
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
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
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
547d31c8da
Depsgraph: minor renaming and refactor of API for adding evaluation flags.
2018-10-24 13:45:03 +03:00
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
727d6644da
Cleanup: fix compiler warnings.
2018-10-24 11:14:49 +02:00
e1a66201da
GP: Add layer pass index to time modifier
2018-10-24 11:03:09 +02:00
341306995b
Fix: buffer overflow when creating gpu.types.GPUIndexBuf
2018-10-24 10:57:46 +02:00
5af716620a
GP: Add new modes to Time Offset modifier
2018-10-24 10:32:03 +02:00
0589368615
GPUShader: shader.uniform_float, matrix parsing
...
Add checks to parse 3x3 or 4x4 matrices,
also use error from `mathutils_array_parse` instead of overwriting.
2018-10-24 18:47:36 +11:00
c8ab88fb89
Partially revert "GPUShader: shader.uniform_float parameters"
...
`mathutils_array_parse` is meant to parse 1d arrays of numbers.
Using matrices internal memory layout is confusing since
mathutils matrices are exposed as row major.
Also, the matrix shape wasn't checked for.
Callers that want to handle matrices should check for them explicitly.
2018-10-24 18:47:36 +11:00
ee18b21201
Fix T57359: Crash adding a Driver and then changing frame
2018-10-24 09:44:57 +02:00
8ccb27fc0a
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/scene.c
2018-10-24 09:00:13 +02:00
65d4314b8e
Fix (unreported) bad halding of ID usercounts when fully copying a scene.
2018-10-24 08:43:20 +02:00
a41f85d324
Fix error w/ poly-build clearing the edit-object
2018-10-24 16:26:33 +11:00
4b2b8a0c3f
Fix T57351: Deform modifiers skipped in editmode
2018-10-24 14:48:17 +11:00
Dalai Felinto
175326fed7
Fixup for LATTICE_OT_flip
...
Committed by accident (1076523b1b
).
But now I need to fix building.
Note: The operator itself shouldn't have been committed because it
should operate in the world space (for the axis), not local.
I will tackle this later.
2018-10-24 00:00:57 -03:00
Dalai Felinto
975974e291
Silence some false positiver warnings
2018-10-23 23:47:04 -03:00
Dalai Felinto
1076523b1b
Multi-Objects: LATTICE_OT_flip
2018-10-23 23:29:51 -03:00
69dd58f210
Fix mapped mesh display skipping generated faces
2018-10-24 13:12:18 +11:00
7dfd3539d5
Cleanup: use bmesh index access functions
2018-10-24 13:07:21 +11:00
860dd31647
Merge branch 'master' into blender2.8
2018-10-24 12:55:44 +11:00
db69deea89
BMesh: inline index lookups
...
For release builds this is now the same as indexing the array directly.
2018-10-24 12:54:26 +11:00
901ccfab52
Fix T57366: Mesh.from_pydata invalid loose-edge state
2018-10-24 11:37:44 +11:00
Dalai Felinto
9f1857002e
Multi-Objects: LATTICE_OT_select_more/less
...
Note: Those operators are yet to be added to the menu.
2018-10-23 20:38:30 -03:00
Dalai Felinto
c052d38d0a
Multi-Objects: LATTICE_OT_select_ungrouped
...
I thought about having a single error message, or to use BKE_reportf to just
add the "s". That would be bad for translators, so now we have two
explicit messages.
2018-10-23 20:25:59 -03:00
ed7f6b511f
Eevee: Fix lightcache not working for small caches
...
Was caused by a threading issue. The lightcache was free before the endjob
function pass it to the scene.
Also fix cache reuse if size matches.
2018-10-23 18:04:45 +02:00