dd67d703a7
Workbench: Fix material compilation.
2018-06-09 21:11:03 +02:00
147eef9741
Eevee: Improve compilation time (reduce branching).
...
This patch reduce the branching in the lamp loop, improving compilation time
noticeably (2372ms to 1785ms for the default shader).
This should not change the appearance of the shader.
Performance impact is negligeable.
2018-06-09 21:11:03 +02:00
45a5ddb57b
Merge branch 'master' into blender2.8
2018-06-09 18:58:14 +02:00
2e14b7fb97
RNA: remove Layout.introspect
...
This was added as an experiment to extract information for docs
but this was never all that useful for its intended purpose.
2018-06-09 18:55:51 +02:00
419a813938
Merge branch 'master' into blender2.8
2018-06-09 18:48:11 +02:00
83cb34ccd1
Cleanup: unused functions
2018-06-09 18:47:39 +02:00
726ed7244e
UI: always show popover subpanel header text
2018-06-09 18:15:08 +02:00
2ae404252d
UI: fix popover subpanel header display
2018-06-09 18:03:22 +02:00
7fdde7fd86
UI: use draw_header function for popover buttons
...
Add 'is_popover' for panel draw functions to check if they're in a popup.
This puts dyntopo toggle next to the popover.
2018-06-09 17:38:32 +02:00
ec8a20fec0
Add new GridFlow layout.
...
This mimics the 'spreadsheet' behavior. Columns and/or rows can have
equal sizes, or adapt to their content - but always in a grid way (i.e.
all items in a same column will always have same available width, and
all items in a same row will always have same available height).
Also, you can fill (order) the grid in a row- or column-major way.
Not used anywhere for now.
Differential: https://developer.blender.org/D2395
2018-06-09 16:54:26 +02:00
5159ce640f
Cleanup: style
2018-06-09 16:39:40 +02:00
70f8eaf1b7
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/space_view3d/drawobject.c
2018-06-09 15:18:21 +02:00
638de72277
Cleanup: remove some G.main usages.
2018-06-09 15:17:04 +02:00
2ca8230f67
Merge branch 'master' into blender2.8
2018-06-09 14:43:01 +02:00
fb565ddb68
Cleanup: trailing space in RNA
2018-06-09 14:40:09 +02:00
56a47e58f4
Cleanup: style
2018-06-09 14:30:32 +02:00
09ce794dc8
UI: initial support for parent panels in popovers
...
Currently this just includes the panels, no support for collapsing yet.
2018-06-09 14:21:39 +02:00
8f40af6dcd
RNA: revert object mode re-order
...
This was done so numbered shortcuts made sense.
Now order matches master.
2018-06-09 12:57:15 +02:00
3bbef95747
Workbench: Fix xray normal not being normalized.
2018-06-09 12:44:56 +02:00
337aab59e9
Workbench: Matcaps: Fix matcap under perspective.
...
This fixes the problem that matcaps have when using a very larg FOV in
perspective view.
This was because it was stupidly using the normal direction which can not
aligned with the view vector under perspective.
So to workaround this problem we don't use the normal as is, but compute
how much it's facing the camera.
This changes how matcaps looks in perspective because they now always use
the full range of the matcap (which is expected).
2018-06-09 12:44:56 +02:00
a1b42b79b3
Workbench: Fix incident vector calculation.
...
This fixes specular in perspective view.
2018-06-09 12:44:56 +02:00
86660aa294
Layout for materials closer to single column
2018-06-08 23:56:39 +02:00
528dc6440b
Merge branch 'master' into blender2.8
2018-06-08 22:19:39 +02:00
5165d62931
WM: correct recent change to click/drag detection
...
fb1915d870 - caused click/drag events not to be detected.
Now check a key is a mouse or keyboard event.
2018-06-08 22:17:21 +02:00
4f2eac3b39
WM: fix panel drag event handling
2018-06-08 19:03:29 +02:00
bf77efb684
WM: fix node link & background drag
2018-06-08 19:03:29 +02:00
1857823839
WM: fix panel drag event handling
2018-06-08 18:58:41 +02:00
2dc7555522
WM: fix node link & background drag
2018-06-08 18:55:47 +02:00
Dalai Felinto
f8d7df6f16
Depsgraph: Remove no longer needed nodetree values copying on eval
...
Note: Depsgraph still calls the nodetree eval function that doesn't
nothing in turn. We can remove it, but it is harmless though.
2018-06-08 17:52:49 +02:00
f2fd5987d0
UI: clear properties color when empty
2018-06-08 17:30:00 +02:00
3e86bb2d0b
Sculpt/Paint: move PBVH building to use evaluated mesh instead of deprecated Derivedmesh.
...
Pretty straightforward changes, merely mimicking dm-related code,
which was already essentially using either Mesh or BMesh data to
build the PBVH...
Note that we "lose" the subsurf (a.k.a. grid) PBVH case here, but that
one was already dead code in current blender2.8, since final dm is
always a cddm built from evaluated mesh.
Proper fix is pending new code for subsurf/multires area.
2018-06-08 17:23:25 +02:00
1ce55693f5
UI: remove tools space type, use properties context
...
We've decieded to use tools context in properties editor.
2018-06-08 16:35:05 +02:00
Dalai Felinto
9d59d20957
DRW: Fix animated material not refreshing
...
This introduces a garbage collection system similar to gpu_texture.
2018-06-08 16:29:33 +02:00
0417f205f5
Fix crash with wertex and weight modes
...
Similar to recent sculpt mode.
2018-06-08 16:24:07 +02:00
Dalai Felinto
f638ad61b8
Rename: GPU_material_get_uniform_buffer > GPU_material_uniform_buffer_get
2018-06-08 16:20:34 +02:00
Dalai Felinto
856a79e1fb
Rename: GPU_texture_orphans
2018-06-08 16:20:34 +02:00
cbbf8bbbb4
Workbench: XFlip Matcap per 3D View
...
Note: Icons are not yet updated.
2018-06-08 16:13:49 +02:00
Julian Eisel
fc85096dc8
Fix T55387: Render fullscreen from top menu crashes Blender
...
Would try to use data from global area for the newly created fullscreen area.
This should not happen, so instead of a global area use first area from layout.
2018-06-08 15:59:34 +02:00
4df45e18dc
Alembic: replaced BLI_assert() with comment why the assert is wrong
...
The comment also hints at what should be fixed, instead.
2018-06-08 15:51:49 +02:00
249a41bc7c
Alembic: slight clarifications
2018-06-08 15:51:49 +02:00
ba31c4d684
Alembic export: get evaluated object when exporting shape
2018-06-08 15:51:49 +02:00
2a771cbc58
Alembic: Moved a BLI_assert
...
The assert should only be triggered when assigning a pointer, and not
simply when checking the pointer.
2018-06-08 15:51:49 +02:00
335e030753
mesh_get_eval_final() should check ob->runtime.mesh_eval
...
It has nothing to do with ob->derivedFinal, which it checked before.
2018-06-08 15:51:49 +02:00
934b9e80d0
Add check in BKE_pbvh_apply_vertCos that number of deforming cos matches number of pbvh vertices.
...
This shall help catching issues in future.
2018-06-08 15:43:57 +02:00
06357b23a2
Fix T55404: Auto key with only-available doesn't work
2018-06-08 15:43:04 +02:00
0dd9a9e66a
Alembic: fixed MSVC incompatibility
2018-06-08 15:09:10 +02:00
f504306671
Workbench: Default specular settings when no materials are used
2018-06-08 15:07:30 +02:00
97e7d9f90b
Merge branch 'master' into blender2.8
2018-06-08 14:57:17 +02:00
d97df0d0e6
Cleanup: unused var, trailing space
2018-06-08 14:56:09 +02:00
94aa4d1657
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_sequencer.h
source/blender/blenkernel/intern/sequencer.c
source/blender/editors/curve/editcurve_paint.c
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/gpencil/gpencil_utils.c
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_view3d.h
source/blender/editors/interface/interface_eyedropper_depth.c
source/blender/editors/render/render_opengl.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_intern.h
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_utils.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_snap.c
source/blender/python/intern/gpu_offscreen.c
source/blender/windowmanager/intern/wm_files.c
2018-06-08 14:38:57 +02:00