5ab57f7ba4
Move out pose edit options into the pose data
...
Move pose edit mode booleans out of the armature data into the pose data
Reviewed By: Brecht
Differential Revision: http://developer.blender.org/D4832
2019-05-09 11:21:34 +02:00
c74e9273a9
Fix T64366 DRW: Crash opening Mr Elephant scene since recent commit
2019-05-09 11:16:54 +02:00
a951aa5f62
Fix T64296 Z-axis overlay vanishes at scene origin in 3D Viewport
...
Grid shader was still using deprecated eye vector.
2019-05-09 10:59:25 +02:00
dea8fb2bea
Fix: Nav_bar context menu in preferences
...
Also merge the keymaps for header/footer/navbar.
D4736 by @Gvgeo with edits
2019-05-09 18:40:42 +10:00
6e33729462
Fix crash displaying UV's
2019-05-09 14:46:44 +10:00
bc39fa947a
Cleanup: redundant function call
2019-05-09 12:42:05 +10:00
60aede44ba
Cleanup: DRW: Remove DRW_pass_free
2019-05-09 01:08:17 +02:00
e2d04229c3
DRW: Remove support for NormalMatrix
2019-05-09 00:27:11 +02:00
1a99b6fc7e
Fix T64158 Eevee: Mixed SSS shader becomes brighter and brighter
...
This change the logic a bit, when 2 bsdfs using SSS are mixed, we use the
one with the biggest radius (on a per pixel basis).
This change from previous behavior which was to select input 1 if radius
was greater than 0.
2019-05-09 00:10:29 +02:00
c995eb1f9f
Cleanup: GPUShader: Remove unused edge fancy shader
2019-05-08 23:28:07 +02:00
9489fea07b
GPU: Refactor some shader for a bit more efficiency
...
Remove matrices multiplication and use more correct codestyle for variables
2019-05-08 23:28:07 +02:00
7ec7888ff3
Eevee: Fix Tangent vectors using NormalMatrix and make them world space
...
Making them world space by default remove a lot of legacy conversion from
viewspace.
2019-05-08 23:28:06 +02:00
c9537ee5c3
Overlay: Remove use of NormalMatrix
2019-05-08 23:28:06 +02:00
8204675689
UI messages: Rename 'Light' to 'Lite' for compression method.
...
While not exactly optimal, that's the only disambiguation solution I
found doable for translations (i18n). ID names tend to sneak
everywhere, including in places where we have no access to i18n context
currently (like menu labels e.g.).
Other alternative would have been to use 'Lightweight', but that is a
tad too long, we love short UI messages as much as possible.
The genius who decided that it was critical to rename ID lamp to light
in 2.8 is welcome to find a better solution...
Part of T43295.
2019-05-08 22:30:25 +02:00
1ac0254cfa
I18n: Disambiguation for 'Cycles' used also by some anim modifier.
...
Part of T43295.
2019-05-08 22:30:25 +02:00
733811330c
Workbench: Use common_view_lib and remove NormalMatrix usage
...
This is in order to lower the number of matrices to compute.
2019-05-08 22:08:20 +02:00
a8a11d3537
Mesh Batch Cache: Fix crash when comming from eevee to wireframe mode
...
And add check in debug build.
2019-05-08 22:01:34 +02:00
f2f62b184c
DRW: Remove WorldNormalMatrix
2019-05-08 20:13:32 +02:00
bb41626ab3
Eevee: Remove uneeded normalization
2019-05-08 20:13:32 +02:00
7e380fd46a
GPU: Remove GPU_INVERSE_NORMAL_MATRIX
...
The end goal for this is to lower the number of needed matrices.
This also cleanup some uneeded transformation.
2019-05-08 20:13:32 +02:00
24aeb479be
Overlay Mode: Use common_view_lib
...
This is in order to centralize all matrices transformations.
2019-05-08 20:13:32 +02:00
c358da6b21
Defaults: change default settings in a few editors
...
* Timeline has summary collapsed to show only one row of keyframes.
* Cavity default is screen space curvature (faster).
* Scripting workspace text editor uses syntax highlight and line numbers.
* Marker lines enabled by default in all animation editors.
* Movie clip editor pivot point default to median.
Ref T63986.
2019-05-08 18:19:26 +02:00
3d759e2b09
Cleanup: DRW/GPU: Remove eye vector uniform
2019-05-08 17:52:49 +02:00
901026c493
Cleanup: Remove BKE_MESH_BATCH_DIRTY_MAYBE_ALL
2019-05-08 17:52:49 +02:00
55173b1583
Cleanup: draw_common: Use switch instead of ifs
2019-05-08 17:52:49 +02:00
aec717cd61
Cleanup: Mesh Batch Cache: Remove unused BKE_MESH_BATCH_DIRTY_SCULPT_COORDS
2019-05-08 17:52:49 +02:00
cca941f614
Cleanup: GPUShader: Use switch instead of ifs
2019-05-08 17:52:48 +02:00
e053f6b1d8
DRW: Copy matrix in case of ModelMatrixInverse being used
...
ob->imat is garanteed to be valid by the depsgraph.
2019-05-08 17:52:48 +02:00
8c5c02932f
Wireframe: Refactor vertex shader to use less matrices
...
This means less matrices needs to be prepared by the CPU.
2019-05-08 17:52:48 +02:00
8d3e2ffa07
DRW: Speedup: Only do batch cache request and validation once for duplis
2019-05-08 17:52:48 +02:00
bb4b6cddcb
Mesh Batch Cache: Speedup: Only alloc gpu_attrs if needed and don't clear
...
No need to clear since GPU_material_vertex_attrs is overriding
2019-05-08 17:52:48 +02:00
7bfe70f2ba
Mesh Batch Cache: Speedup: Use flags to early remove unecessary checks
2019-05-08 17:52:48 +02:00
0030e4da70
DRW: Make batch validation run first during iteration
...
This reduces the cost of querying the batches to the batch cache.
2019-05-08 17:52:48 +02:00
05b0f52aa7
DRW: Move all batch request functions to own header
...
This is in order to using BLI_INLINE for thoses functions and keep headers
cleany separated.
2019-05-08 17:52:48 +02:00
0b88cd5032
DRW: Change function orders to improve CPU cache efficiency
...
These changes seems to impact cache efficiency as it uses shgroup just
after creating a DRWCall before shgroup.
2019-05-08 17:52:48 +02:00
6df7946f73
Object Overlay: Add dupli fast path
2019-05-08 17:52:48 +02:00
9bfdc4826a
Wireframe: Create dupli fast path using DRW_duplidata_get
2019-05-08 17:52:48 +02:00
b6b3a57c22
DRW: Add DRW_duplidata_get to create fast path for duplis
...
This is in order to create less shading group when using duplis.
Data for dupli objects keep in draw manager state until the source object
changes so retrieval is fast.
Note that this system could be extended to all meshes.
2019-05-08 17:52:48 +02:00
1ae2385106
GPUViewport: Fix possible hash colision with enabled engines
...
Also fix engine data validation that was not previously not working.
2019-05-08 17:49:28 +02:00
ac2e23c739
DRW: Remove uneeded calls to drw_viewport_engine_data_ensure when iterating
...
This remove a bit of overhead specially in scene with lots of objects.
2019-05-08 17:49:28 +02:00
820a64b9e5
DRW: Replace BLI_mempool by BLI_memblock
...
This remove a avoid the big overhead present in BLI_mempool when it is
cleared.
2019-05-08 17:49:28 +02:00
9fea65a93d
DRW: Speedup: Don't call GPU_shader_uniform_vector if not needed
...
This seems to remove a bit of overhead of going into the function even if
the uniform is not needed.
2019-05-08 17:49:28 +02:00
45caba3733
BLI_memblock: New memory allocator
...
This is really close to BLI_mempool but uses an array to keep track of the
chunks of memory. There is no tagging necessary to clear the whole
structure so reuse is fast.
Naturally supports iteration but does not support freeing.
2019-05-08 17:49:27 +02:00
f273141556
Fix T64302: objects disappearing when disabling overlays
...
Only happened for Cycles, after recent changes.
Differential Revision: https://developer.blender.org/D4826
2019-05-08 16:55:43 +02:00
5aaa00ed55
Revert "UI: Dynamic region size for file browser options"
...
This breaks the user interface of exporters, so revert for now until there
is a solution for this.
This reverts commit ee0d8426ab .
2019-05-08 16:55:43 +02:00
58bfe93db6
Spline IK: fix a scaling hiccup as bones roll off the end of the curve.
2019-05-08 17:17:15 +03:00
44d4fdec7e
Fix T64266: Incorrect modifier object target after making duplicates real for instanced collections.
...
Not sure why newid was set in evaluated object instead of orig one,
makes no sense to me, since we want to operate remapping of ID pointers
on orig data? Looks like that was something overseen when that code was
ported to new COW system.
2019-05-08 15:54:39 +02:00
3b9813fe50
UI: Move scrollbars to the right in animation editors
...
The text, that was in the scrollbars, stays on the left.
Reviewers: brecht, billreynish
Differential Revision: https://developer.blender.org/D4821
2019-05-08 15:16:05 +02:00
4a98e33785
Fix heap buffer overflow in tabs to spaces
...
Need to count string terminator.
2019-05-08 14:37:05 +02:00
c79fc710b3
Keymap: Special keymap for clip editor scrubbing area
...
Reviewers: sergey
Differential Revision: https://developer.blender.org/D4825
2019-05-08 14:10:09 +02:00