blender.git
2 years agoFix crash linking/appending from old files in some cases.
Brecht Van Lommel [Tue, 15 May 2018 11:23:01 +0000 (13:23 +0200)]
Fix crash linking/appending from old files in some cases.

Temporary main would not have a lock, which caused crashing when adding
datablocks.

2 years agoFix random crashes in the outliner, especially with bigger scenes.
Brecht Van Lommel [Tue, 15 May 2018 10:49:38 +0000 (12:49 +0200)]
Fix random crashes in the outliner, especially with bigger scenes.

The outliner can redraw quicker without rebuilding the tree, for example when
just moving the mouse and highlighting different items. The way this worked is
that the outliner would be tagged to avoid rebuilding, however if another
operation that does require rebuilding happens in the meantime we could go out
of sync and crash.

2 years agoPose Toolbar: Added Breakdowner/Push/Relax as separate tools
Joshua Leung [Tue, 15 May 2018 10:40:50 +0000 (12:40 +0200)]
Pose Toolbar: Added Breakdowner/Push/Relax as separate tools

Currently all are stacked together, but perhaps if we don't get any other
tools in the meantime, it would make sense to have them separate.

Notes:
* No icons for now...
* There are some 2.8 bugs with the underlying operators (notably multi object)

2 years agoEdit Armature Toolbar: Added some tools for "Shrink Fatten" (Alt-S) type bone transfo...
Joshua Leung [Tue, 15 May 2018 08:24:26 +0000 (10:24 +0200)]
Edit Armature Toolbar: Added some tools for "Shrink Fatten" (Alt-S) type bone transform tools

For fun, I tried adding some more edit armature tools to the toolbar to
check how this is all working. Icons are missing currently, but it's a
nice test.

2 years agoFix bone-size crash
Campbell Barton [Tue, 15 May 2018 09:36:39 +0000 (11:36 +0200)]
Fix bone-size crash

Own regression from multi-object transform.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 09:14:33 +0000 (11:14 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: last spacetype enum name
Campbell Barton [Tue, 15 May 2018 09:12:49 +0000 (11:12 +0200)]
Cleanup: last spacetype enum name

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 08:25:49 +0000 (10:25 +0200)]
Merge branch 'master' into blender2.8

2 years agoUndo System: remove nested edit-mode undo calls
Campbell Barton [Tue, 15 May 2018 08:02:01 +0000 (10:02 +0200)]
Undo System: remove nested edit-mode undo calls

Regression in recent undo system changes,
This caused T55048.

When each mode had its own undo stack it was important
to initialize it when entering edit-mode.

2 years agoFix texture space transform crash
Campbell Barton [Tue, 15 May 2018 07:24:14 +0000 (09:24 +0200)]
Fix texture space transform crash

Own regression from multi-object transform.

2 years agoFix T55061: Shadows were not updated during sclupting.
Jeroen Bakker [Tue, 15 May 2018 07:12:42 +0000 (09:12 +0200)]
Fix T55061: Shadows were not updated during sclupting.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 07:08:48 +0000 (09:08 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix BMesh bisect not flagging dirty indices
Campbell Barton [Tue, 15 May 2018 07:04:12 +0000 (09:04 +0200)]
Fix BMesh bisect not flagging dirty indices

2 years agoWorkbench: Enable Textures in Edit Mesh Mode
Jeroen Bakker [Tue, 15 May 2018 06:56:45 +0000 (08:56 +0200)]
Workbench: Enable Textures in Edit Mesh Mode

Constructed UV out of BMesh data layers.

2 years agoCleanup: Use switch statement to test the object type in snap functions.
Germano [Mon, 14 May 2018 21:43:03 +0000 (18:43 -0300)]
Cleanup: Use switch statement to test the object type in snap functions.

2 years agoEditMesh: updated extrude manipulator
Campbell Barton [Mon, 14 May 2018 21:21:59 +0000 (23:21 +0200)]
EditMesh: updated extrude manipulator

Now plus icons are used to add,
arrows are used to adjust existing extrusions.

2 years agoManipulator: outline & helpline options for button
Campbell Barton [Mon, 14 May 2018 21:18:36 +0000 (23:18 +0200)]
Manipulator: outline & helpline options for button

2 years agoManipulator: utility to get matrix w/o offset
Campbell Barton [Mon, 14 May 2018 21:15:15 +0000 (23:15 +0200)]
Manipulator: utility to get matrix w/o offset

2 years agoCleanup: compiler warnings, use const
Campbell Barton [Mon, 14 May 2018 21:12:51 +0000 (23:12 +0200)]
Cleanup: compiler warnings, use const

2 years agoTransform: Use the new BLI_bvhtree_find_nearest_projected function to snap.
Germano [Mon, 14 May 2018 19:08:17 +0000 (16:08 -0300)]
Transform: Use the new BLI_bvhtree_find_nearest_projected function to snap.

2 years agoNew function for BLI_kdopbvh: `BLI_bvhtree_find_nearest_projected`.
Germano [Mon, 14 May 2018 19:00:13 +0000 (16:00 -0300)]
New function for BLI_kdopbvh: `BLI_bvhtree_find_nearest_projected`.

This patch does not make any difference for a user's POV. But it is a step for adding the occlusion test for snapping functions.
This new function finds the node(aabb) whose projection is closest to a screen coordinate.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Tags: #bf_blender_2.8

Differential Revision: https://developer.blender.org/D3180

2 years agoFix crash opening 01_015_A.lighting.blend - DL_INDEX3 displist have a single normal...
Bastien Montagne [Mon, 14 May 2018 15:39:41 +0000 (17:39 +0200)]
Fix crash opening 01_015_A.lighting.blend - DL_INDEX3 displist have a single normal, not one per vertex!

2 years agoView 3D: Use Z Key for "geometry occlusion" toggle
Dalai Felinto [Mon, 14 May 2018 15:17:02 +0000 (17:17 +0200)]
View 3D: Use Z Key for "geometry occlusion" toggle

Note: The header doesn't update until you mouse hover it.

2 years agoFix error in MESH_OT_edge_face_add changes
Campbell Barton [Mon, 14 May 2018 14:31:44 +0000 (16:31 +0200)]
Fix error in MESH_OT_edge_face_add changes

Context sensitive create also needs to check selected vertices.

Also correct indentation.

2 years agoFix error moving pivot
Campbell Barton [Mon, 14 May 2018 14:25:16 +0000 (16:25 +0200)]
Fix error moving pivot

Missed updating keymap RNA paths.

2 years agoFix UI failing for vertex paint
Dalai Felinto [Mon, 14 May 2018 14:11:05 +0000 (16:11 +0200)]
Fix UI failing for vertex paint

2 years agoMulti-Objects: MESH_OT_vert_connect_path by Falk David
Dalai Felinto [Mon, 14 May 2018 13:55:14 +0000 (15:55 +0200)]
Multi-Objects: MESH_OT_vert_connect_path by Falk David

With a few changes:
* Use space after if.
* Skip for loop when no selected vertices.

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3349

2 years agoMulti-Objects: MESH_OT_edge_face_add by Guy Boicey
Dalai Felinto [Mon, 14 May 2018 13:39:58 +0000 (15:39 +0200)]
Multi-Objects: MESH_OT_edge_face_add by Guy Boicey

With changes by Dalai Felinto:
* Indentation
* Skip for loop when no vert/edge are selected

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3233

2 years agoCOW Fix: The "layers used" display for armatures did not update after bones were...
Joshua Leung [Mon, 14 May 2018 13:42:49 +0000 (15:42 +0200)]
COW Fix: The "layers used" display for armatures did not update after bones were moved between layers

Previously, the "layers_used" value was getting updated by the drawing code.
However, when using copy on write, the drawing code gets evaluated copies of
the armature data instead of the original data, so any updates here fail to
get flushed to the original data, hence the lack of updates in the UI.

Fixed by moving the calculation to RNA when setting bone layers, as it should
have been done originally. (The one downside to this is if we set individual
layer memberships one by one - this could be slower as the recalc would have to
happen each time this changes).

2 years agoFix: With no bones selected, move bones to layer operator would display garbage layer set
Joshua Leung [Mon, 14 May 2018 12:37:14 +0000 (14:37 +0200)]
Fix: With no bones selected, move bones to layer operator would display garbage layer set

Was using uninitialised memory

2 years agoFix: POSE_OT_select_constraint_target now works with copy on write
Joshua Leung [Mon, 14 May 2018 11:54:45 +0000 (13:54 +0200)]
Fix: POSE_OT_select_constraint_target now works with copy on write

2 years agoMESH_OT_select_mirror: Only report when something to report
Dalai Felinto [Mon, 14 May 2018 13:26:29 +0000 (15:26 +0200)]
MESH_OT_select_mirror: Only report when something to report

Inspired by D3299.

2 years agoMulti- Objects: MESH_OT_select_face_by_sides by Rainer Trummer
Dalai Felinto [Mon, 14 May 2018 13:21:06 +0000 (15:21 +0200)]
Multi- Objects: MESH_OT_select_face_by_sides by Rainer Trummer

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3301

2 years agoMulti-Object: MESH_OT_vert_connect_concave by Guy Boicey
Dalai Felinto [Mon, 14 May 2018 12:56:00 +0000 (14:56 +0200)]
Multi-Object: MESH_OT_vert_connect_concave by Guy Boicey

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3255

2 years agoManipulator: fix 2D icon buttons in the 3D view
Campbell Barton [Mon, 14 May 2018 12:46:37 +0000 (14:46 +0200)]
Manipulator: fix 2D icon buttons in the 3D view

2 years agoSome cleanup in modifiers' mesh copying.
Bastien Montagne [Mon, 14 May 2018 12:34:00 +0000 (14:34 +0200)]
Some cleanup in modifiers' mesh copying.

2 years agoFix T55031: add explicit copy flag to force deep-copying shapekey datablock with...
Bastien Montagne [Mon, 14 May 2018 12:23:11 +0000 (14:23 +0200)]
Fix T55031: add explicit copy flag to force deep-copying shapekey datablock with 'parent' one.

Chose to change defaut behavior (0-flag one) here, for sake of
consistency. Default behavior of simple BKE_id_copy() remains unchanged
though.

2 years agoT54643-Multi-Object EditMesh: MESH_OT_select_nth
Luc Revardel [Mon, 14 May 2018 11:57:17 +0000 (13:57 +0200)]
T54643-Multi-Object EditMesh: MESH_OT_select_nth

With changes by Dalai Felinto:
* Move WM_operator.* outside for loop.
* Update error message to handle Mesh and Meshes.
* Skip main functionality when no vert/edge/face is selected.

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3371

2 years agoUI Tweaks in 3D View
Pablo Vazquez [Mon, 14 May 2018 12:00:29 +0000 (14:00 +0200)]
UI Tweaks in 3D View

* Move Shading modes out of the popover
* Move Show Overlays out of the popover
* Test moving the Mode to the topbar again
* Move submode (select vertex, edge, face) to the topbar
* Remove icon from show_manipulator toggle

2 years agoMulti-Object: MESH_OT_select_mirror
Dalai Felinto [Mon, 14 May 2018 11:43:20 +0000 (13:43 +0200)]
Multi-Object: MESH_OT_select_mirror

2 years agoFix extrude adjustment on normal axis
Campbell Barton [Mon, 14 May 2018 11:45:13 +0000 (13:45 +0200)]
Fix extrude adjustment on normal axis

2 years agoFix: Skip missing COW tagging on changing armature layers via RNA
Joshua Leung [Mon, 14 May 2018 11:42:23 +0000 (13:42 +0200)]
Fix: Skip missing COW tagging on changing armature layers via RNA

Was causing problems on Spring rig while trying to show/hide armature layers

2 years agoFix incorrect matrix stack push/pop
Campbell Barton [Mon, 14 May 2018 11:03:04 +0000 (13:03 +0200)]
Fix incorrect matrix stack push/pop

2 years agoMulti-Object: MESH_OT_vert_connect_nonplanar by Aeden McClain
Dalai Felinto [Mon, 14 May 2018 11:02:00 +0000 (13:02 +0200)]
Multi-Object: MESH_OT_vert_connect_nonplanar by Aeden McClain

With indentation fixes by Dalai Felinto.

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3312

2 years agoMulti-Objects: VIEW3D_OT_snap_selected_to_gri by Leon Eckardtd
Dalai Felinto [Mon, 14 May 2018 10:51:55 +0000 (12:51 +0200)]
Multi-Objects: VIEW3D_OT_snap_selected_to_gri by Leon Eckardtd

With changes by Dalai Felinto (skip for loop when no vert/edgeface selected).

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3302

2 years agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Mon, 14 May 2018 10:44:05 +0000 (12:44 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

2 years agoFix extrude manipulator update w/ view orientation
Campbell Barton [Mon, 14 May 2018 10:24:44 +0000 (12:24 +0200)]
Fix extrude manipulator update w/ view orientation

2 years agoMulti-Object: MESH_OT_convex_hull by Lucas Boutrot
Dalai Felinto [Mon, 14 May 2018 10:18:42 +0000 (12:18 +0200)]
Multi-Object: MESH_OT_convex_hull by Lucas Boutrot

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3223

2 years agoWorkbench: Named background rendering
Jeroen Bakker [Mon, 14 May 2018 10:07:58 +0000 (12:07 +0200)]
Workbench: Named background rendering

2 years agoWorkbench: Render studio hdr name in selection
Jeroen Bakker [Mon, 14 May 2018 08:32:28 +0000 (10:32 +0200)]
Workbench: Render studio hdr name in selection

2 years agoParticle edit: Avoid depsgraph tag from draw code
Sergey Sharybin [Mon, 14 May 2018 08:15:54 +0000 (10:15 +0200)]
Particle edit: Avoid depsgraph tag from draw code

Some of the function was intended to be used form drawing as well,
for until that is changed in design we can not use dependency graph
tags form it.

2 years agoRevert "Tag update when using particle edit brushes"
Sergey Sharybin [Fri, 11 May 2018 15:19:15 +0000 (17:19 +0200)]
Revert "Tag update when using particle edit brushes"

This reverts commit 5dba0b68f8ba9e9d700c75be6595fb09e6d5c5ea.

Old code was supposed to use this function from draw, and we must never
poke depsgraph from drawing.

2 years agoWorkbench: Studio light better diffuse sampling
Jeroen Bakker [Mon, 14 May 2018 08:04:34 +0000 (10:04 +0200)]
Workbench: Studio light better diffuse sampling

Increased steps of diffuse sampling for narrow hightlights

2 years agoWorkbench: Support HDR files as HDRI studio lighting
Jeroen Bakker [Mon, 14 May 2018 07:55:23 +0000 (09:55 +0200)]
Workbench: Support HDR files as HDRI studio lighting

support Radiance HDR files for studio lighting.
Fix crash when studiolight folder does not exist.

2 years agoUV: multi-object project bounds
Campbell Barton [Mon, 14 May 2018 07:15:43 +0000 (09:15 +0200)]
UV: multi-object project bounds

D3368 by @Al with own edits.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 14 May 2018 07:01:07 +0000 (09:01 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: quiet GCC -Wtype-limits
Campbell Barton [Mon, 14 May 2018 06:58:09 +0000 (08:58 +0200)]
Cleanup: quiet GCC -Wtype-limits

While the warning can normally be disabled, we don't have have as much
control of warnings when macros are used.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 14 May 2018 06:41:15 +0000 (08:41 +0200)]
Merge branch 'master' into blender2.8

2 years agoBLI_utildefines: re-ordering array delete macro
Campbell Barton [Mon, 14 May 2018 05:37:17 +0000 (07:37 +0200)]
BLI_utildefines: re-ordering array delete macro

2 years agoEevee: Hair: Disable SSR for hairs.
Clément Foucault [Sun, 13 May 2018 22:18:00 +0000 (00:18 +0200)]
Eevee: Hair: Disable SSR for hairs.

SSR does not work with hair strands. Basically, the rays are too much
random to ever converge properly and just result in a soup of self
inter reflections.

So forcing it to not produce any SSR. Could potentially save some bandwidth
by not rendering hair to the SSR buffers.

2 years agoEevee: Hair: Fix normal distribution of previous commit.
Clément Foucault [Sun, 13 May 2018 21:12:45 +0000 (23:12 +0200)]
Eevee: Hair: Fix normal distribution of previous commit.

Now it starts to look correct!

2 years agoEevee: Hair: Remove old hack and replace by new hack.
Clément Foucault [Sun, 13 May 2018 20:20:44 +0000 (22:20 +0200)]
Eevee: Hair: Remove old hack and replace by new hack.

This is a hack to properly shade wire hairs. Use stochastic sampling and
let TAA solve the noise.

At least it's way more correct than the previous hack.

2 years agoGPUTexture: Add Texture Buffer support.
Clément Foucault [Sun, 13 May 2018 20:12:32 +0000 (22:12 +0200)]
GPUTexture: Add Texture Buffer support.

This is needed by opensubdiv and can be helpfull in a lot of other cases.

2 years agoEditMesh: Use tweak for extrude tool
Campbell Barton [Sun, 13 May 2018 19:19:22 +0000 (21:19 +0200)]
EditMesh: Use tweak for extrude tool

Could too easily click to extrude without any offset.

2 years agoEditMesh: show XYZ axis for extrude
Campbell Barton [Sun, 13 May 2018 15:53:31 +0000 (17:53 +0200)]
EditMesh: show XYZ axis for extrude

Always show normal axis since this is the most used,
even when another orientation is selected.

2 years agoEevee: Fix lamp defaulting to no specular.
Clément Foucault [Sun, 13 May 2018 19:07:25 +0000 (21:07 +0200)]
Eevee: Fix lamp defaulting to no specular.

Was missing a default value.

2 years agoFix missing path callback for new Object.display struct.
Bastien Montagne [Sun, 13 May 2018 17:06:37 +0000 (19:06 +0200)]
Fix missing path callback for new Object.display struct.

2 years agoFix issue w/ recent tool name use
Campbell Barton [Sun, 13 May 2018 16:39:15 +0000 (18:39 +0200)]
Fix issue w/ recent tool name use

Use the context space type, not the workspace.
Broke setting tools for the first time.

2 years agoIcons: updated transform icons
Campbell Barton [Sun, 13 May 2018 16:33:01 +0000 (18:33 +0200)]
Icons: updated transform icons

2 years agoUI: fix popovers not properly working with scroll arrows for long menus.
Brecht Van Lommel [Sun, 13 May 2018 16:23:21 +0000 (18:23 +0200)]
UI: fix popovers not properly working with scroll arrows for long menus.

2 years agoBuild deps: avoid ffmpeg external crystalhd library dependency.
Brecht Van Lommel [Sun, 13 May 2018 13:58:11 +0000 (15:58 +0200)]
Build deps: avoid ffmpeg external crystalhd library dependency.

2 years agoIcons: fix z-sorting
Campbell Barton [Sun, 13 May 2018 15:10:20 +0000 (17:10 +0200)]
Icons: fix z-sorting

Was depth sorting per mesh.

2 years agoFix/workaround crash when appending workspace in edit mode
Julian Eisel [Sun, 13 May 2018 14:49:05 +0000 (16:49 +0200)]
Fix/workaround crash when appending workspace in edit mode

Linking/appending in edit mode currently isn't supported. For workspaces it
should probably be, but we can look into supporting this later.

For now gray out buttons in "Add Workspace" menu while in edit mode.

2 years agoFix invisible scroll-bars after file read
Julian Eisel [Sun, 13 May 2018 14:36:41 +0000 (16:36 +0200)]
Fix invisible scroll-bars after file read

Own mistake from 51efeb683451d896.

2 years agoIcons: optionally use material color
Campbell Barton [Sun, 13 May 2018 14:21:11 +0000 (16:21 +0200)]
Icons: optionally use material color

The RGB node is used if it exists,
this is multiplied by the vertex color.

2 years agoFix build error with Visual Studio / Windows.
Nick Milios [Sun, 13 May 2018 13:48:55 +0000 (15:48 +0200)]
Fix build error with Visual Studio / Windows.

Differential Revision: https://developer.blender.org/D3363

2 years agoRevert "UI: geometry-icon alpha blend over existing colors"
Campbell Barton [Sun, 13 May 2018 13:39:06 +0000 (15:39 +0200)]
Revert "UI: geometry-icon alpha blend over existing colors"

This reverts commit 9606d28d40809c58cfee7f817fd2c582da5030bd.

Caused issue w/ overlapping triangles,
since this isn't overly important reverting.

2 years agoUI: geometry-icon alpha blend over existing colors
Campbell Barton [Sun, 13 May 2018 13:14:06 +0000 (15:14 +0200)]
UI: geometry-icon alpha blend over existing colors

Useful to mix pre-defined material colors.

2 years agoFix compiler warnings.
Brecht Van Lommel [Sun, 13 May 2018 12:10:05 +0000 (14:10 +0200)]
Fix compiler warnings.

2 years agoUI/Python: layout API support for setting button emboss style.
Brecht Van Lommel [Sun, 13 May 2018 10:57:31 +0000 (12:57 +0200)]
UI/Python: layout API support for setting button emboss style.

2 years agoCleanup: deduplicate layout item initialization.
Brecht Van Lommel [Sun, 13 May 2018 10:28:35 +0000 (12:28 +0200)]
Cleanup: deduplicate layout item initialization.

2 years agoTool System: Support set w/ space-type argument
Campbell Barton [Sun, 13 May 2018 09:49:21 +0000 (11:49 +0200)]
Tool System: Support set w/ space-type argument

2 years agoUI: show toolbar shortcuts
Campbell Barton [Sun, 13 May 2018 08:25:18 +0000 (10:25 +0200)]
UI: show toolbar shortcuts

When toobar text is expanded, show shortcuts
(normally confined to menus).

2 years agoTool System: tools are now set by name
Campbell Barton [Sun, 13 May 2018 08:01:56 +0000 (10:01 +0200)]
Tool System: tools are now set by name

This avoids having to store the tool definition in the operator
properties (on redraw).

Now just set the name, note this means we can't show the keymap in the
tool-tip anymore. This will eventually be shown in the status bar.

2 years agoWM: utility to create tool keybindings
Campbell Barton [Sun, 13 May 2018 07:34:22 +0000 (09:34 +0200)]
WM: utility to create tool keybindings

2 years agoWM: Operator to set the tool by name
Campbell Barton [Sun, 13 May 2018 06:59:50 +0000 (08:59 +0200)]
WM: Operator to set the tool by name

Needed to bind keys to tools (T55036).

2 years agoCleanup: indentation
Campbell Barton [Sun, 13 May 2018 06:32:47 +0000 (08:32 +0200)]
Cleanup: indentation

2 years agoCleanup: add function to get class from space type
Campbell Barton [Sun, 13 May 2018 06:13:13 +0000 (08:13 +0200)]
Cleanup: add function to get class from space type

2 years agoCleanup: call toolsystem static methods directly
Campbell Barton [Sun, 13 May 2018 06:07:17 +0000 (08:07 +0200)]
Cleanup: call toolsystem static methods directly

Note, may move these static methods into their own module.

2 years agoVersioning: default scene to mean center pivot
Campbell Barton [Sun, 13 May 2018 05:25:25 +0000 (07:25 +0200)]
Versioning: default scene to mean center pivot

2 years agoTransform: fix regression in bound-box calculation
Campbell Barton [Sun, 13 May 2018 05:17:36 +0000 (07:17 +0200)]
Transform: fix regression in bound-box calculation

Error in multi-object merge.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 13 May 2018 04:56:51 +0000 (06:56 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: trailing space
Campbell Barton [Sun, 13 May 2018 04:44:03 +0000 (06:44 +0200)]
Cleanup: trailing space

2 years agoFix 3D view axis align flag
Campbell Barton [Sun, 13 May 2018 04:37:36 +0000 (06:37 +0200)]
Fix 3D view axis align flag

Missed from recent pivot-point move to scene.

2 years agoCleanup: Remove unused member.
Germano [Sun, 13 May 2018 02:39:36 +0000 (23:39 -0300)]
Cleanup: Remove unused member.

2 years agoBKE_bvhutils: allow caching NULL bvh_trees.
Germano [Sat, 12 May 2018 22:43:36 +0000 (19:43 -0300)]
BKE_bvhutils: allow caching NULL bvh_trees.

This prevents zero-leafs bvhtrees from being recalculated multiple times.

2 years agotransform_snap_object: perf: Check the distance of the bound_box of objects of type...
Germano [Sat, 12 May 2018 22:39:21 +0000 (19:39 -0300)]
transform_snap_object: perf: Check the distance of the bound_box of objects of type armature and curve first.

And remove unused variables.

2 years agoCleanup: transform_snap_object: Remove unused variables and reuse the precalc used...
Germano [Sat, 12 May 2018 22:10:23 +0000 (19:10 -0300)]
Cleanup: transform_snap_object: Remove unused variables and reuse the precalc used to test the distance to the projected bound_box.

2 years agoEevee: Fix Dof shader compilation.
Clément Foucault [Sat, 12 May 2018 21:18:27 +0000 (23:18 +0200)]
Eevee: Fix Dof shader compilation.

2 years agoEevee: Depht Of Field: Merge Scatter passes together.
Clément Foucault [Sat, 12 May 2018 19:01:07 +0000 (21:01 +0200)]
Eevee: Depht Of Field: Merge Scatter passes together.

This means only one texture to draw to and only one sprite per pixel.

The texture is twice as large and near and far planes are side by side.

The sprite choose the biggest coc to expand to and is redirected to the
area (layer) it belongs to.

The fragment shader discard every pixel that does not belong to the correct
layer.