Clément Foucault
60aede44ba
Cleanup: DRW: Remove DRW_pass_free
2019-05-09 01:08:17 +02:00
Clément Foucault
e2d04229c3
DRW: Remove support for NormalMatrix
2019-05-09 00:27:11 +02:00
Clément Foucault
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
Clément Foucault
c995eb1f9f
Cleanup: GPUShader: Remove unused edge fancy shader
2019-05-08 23:28:07 +02:00
Clément Foucault
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
Clément Foucault
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
Clément Foucault
c9537ee5c3
Overlay: Remove use of NormalMatrix
2019-05-08 23:28:06 +02:00
Bastien Montagne
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
Bastien Montagne
1ac0254cfa
I18n: Disambiguation for 'Cycles' used also by some anim modifier.
...
Part of T43295.
2019-05-08 22:30:25 +02:00
Clément Foucault
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
Clément Foucault
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
Clément Foucault
f2f62b184c
DRW: Remove WorldNormalMatrix
2019-05-08 20:13:32 +02:00
Clément Foucault
bb41626ab3
Eevee: Remove uneeded normalization
2019-05-08 20:13:32 +02:00
Clément Foucault
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
Clément Foucault
24aeb479be
Overlay Mode: Use common_view_lib
...
This is in order to centralize all matrices transformations.
2019-05-08 20:13:32 +02:00
Brecht Van Lommel
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
Clément Foucault
3d759e2b09
Cleanup: DRW/GPU: Remove eye vector uniform
2019-05-08 17:52:49 +02:00
Clément Foucault
901026c493
Cleanup: Remove BKE_MESH_BATCH_DIRTY_MAYBE_ALL
2019-05-08 17:52:49 +02:00
Clément Foucault
55173b1583
Cleanup: draw_common: Use switch instead of ifs
2019-05-08 17:52:49 +02:00
Clément Foucault
aec717cd61
Cleanup: Mesh Batch Cache: Remove unused BKE_MESH_BATCH_DIRTY_SCULPT_COORDS
2019-05-08 17:52:49 +02:00
Clément Foucault
cca941f614
Cleanup: GPUShader: Use switch instead of ifs
2019-05-08 17:52:48 +02:00
Clément Foucault
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
Clément Foucault
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
Clément Foucault
8d3e2ffa07
DRW: Speedup: Only do batch cache request and validation once for duplis
2019-05-08 17:52:48 +02:00
Clément Foucault
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
Clément Foucault
7bfe70f2ba
Mesh Batch Cache: Speedup: Use flags to early remove unecessary checks
2019-05-08 17:52:48 +02:00
Clément Foucault
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
Clément Foucault
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
Clément Foucault
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
Clément Foucault
6df7946f73
Object Overlay: Add dupli fast path
2019-05-08 17:52:48 +02:00
Clément Foucault
9bfdc4826a
Wireframe: Create dupli fast path using DRW_duplidata_get
2019-05-08 17:52:48 +02:00
Clément Foucault
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
Clément Foucault
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
Clément Foucault
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
Clément Foucault
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
Clément Foucault
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
Clément Foucault
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
Jeroen Bakker
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
Brecht Van Lommel
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
Alexander Gavrilov
58bfe93db6
Spline IK: fix a scaling hiccup as bones roll off the end of the curve.
2019-05-08 17:17:15 +03:00
Bastien Montagne
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
Jacques Lucke
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
Sergey Sharybin
4a98e33785
Fix heap buffer overflow in tabs to spaces
...
Need to count string terminator.
2019-05-08 14:37:05 +02:00
Jacques Lucke
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
Howard Trickey
6950faa24e
Normals Menu: fix Average to be able to specify type.
...
Also removed some rogue debugging printfs from normal selection code.
2019-05-08 07:44:15 -04:00
Alexander Gavrilov
27b9a0cd67
Copy Scale: support raising the copied scale to an arbitrary power.
...
Since scale is multiplicative, the appropriate way to partially copy
it is to use power. However, the influence slider of constraints uses
linear interpolation. Thus, there is no way to correctly split scale
via constraints without adding this feature.
In addition, this allows inverting scale by using negative powers,
fulfilling the function of Copy Rotation's Invert checkboxes.
2019-05-08 12:17:00 +03:00
Sergey Sharybin
951396a9bd
Fix T64274: Crash with more than 1 subdivision with the Multiresolution Modifier
...
Update more relevant fields in the sculpt session. Really becoming annoying, but
was also annoying in the old code as well.
2019-05-08 10:42:21 +02:00
Jacques Lucke
8287f31876
Fix T64298: Overlapping scrubbing area in clip editors dopesheet
2019-05-08 10:29:17 +02:00
Campbell Barton
700c69ad08
Fix T64283: Gizmo doesn't update after click-extrude
2019-05-08 15:14:23 +10:00
Campbell Barton
f8def6db50
Cleanup: unused var, doxy syntax for math_matrix.c
2019-05-08 09:33:06 +10:00