Blender Git Commits

Blender Git "master" branch commits.

Page: 530 / 5574

October 21, 2020, 06:14 (GMT)
DrawManager: Adding Custom Render Passes

Currently render passes in the draw manager (eevee) must be predefined
in the render result. This patch would ask the render engine for the
render passes it needs, and create these as a preparation step during
rendering. This allows any draw engine to define more complex render
passes setup.

Render passes can only be added before the call to `RE_engine_begin_result`.
`RE_engine_begin_result` makes a full copy of the render passes. During
rendering the render engines renders to the duplicated passes.
`RE_engine_end_result` syncs the data back to the original render passes,
but only if the passes existed in the original render result.
Currently we work-around this issue by registering the passes in
`render_result_new`. This is legacy blender internal structure and should
be avoided.

With upcoming projects (AOV/Cryptomatte) it becomes a bit of a mess as we
are extending legacy code to support new features. This patch allows us to
let each draw engine register their own render passes at render time
(similar to cycles and other render engines). In the future we could get
rid of legacy render passes registration in render_result_new.

Reviewed By: Cl�ment Foucault

Differential Revision: https://developer.blender.org/D9088
October 21, 2020, 02:53 (GMT)
Fix T81079: Switch object ignoring visibility settings

Replace ED_transform_snap_object_context_create with
ED_view3d_give_base_under_cursor & ED_view3d_autodist_simple so object
visibility is respected and non-geometry objects can be supported.

Ref D9255
October 21, 2020, 02:11 (GMT)
Fix for T81757: Incorrect Overlay Line Height

Fixes error in determining 3DView Overlay Line Height. Do not base on current default font height.

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

Reviewed by Campbell Barton
October 21, 2020, 02:03 (GMT)
Cleanup: simplify lasso transform from 17cb2a6da0c88

Access as 2D array, loop forwards over the pointer since it's
more common and simpler to read.
October 21, 2020, 01:54 (GMT)
Cleanup: avoid error prone nested switch statements (missing break)

17cb2a6da0c88 missed a break statement after a nested switch,
while it didn't cause a bug nesting switch doesn't read well
and is prone to errors like this.

Split modal-keymap checks into their own branch to avoid this happening,
also use matching event checks for all gesture operators.
October 20, 2020, 21:07 (GMT)
Fluid: Added obstacle fluid distance parameter

Being able to adjust the distance between fluid and obstacles comes in handy when trying to achieve a fluid motion over inclined obstacles.

Depending on the slope of such obstacles, already small adjustments of this value can help when particles stick to obstacle surfaces (i.e. make particles not stick to obstacles).
October 20, 2020, 20:52 (GMT)
UI: Add angle snapping to line gesture tools

This adds support for snapping for line gesture tool. It is implemented
in the modal keymap as Snap, which is a toggle (similar to how snapping
in the transform operator works).

Right now it snaps the angle of the line to 15 degree increments, which
is defined in code. This should be easy to expose in the UI in the future
if we need to.

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D9115
October 20, 2020, 20:33 (GMT)
Fix error in the last commit

I accidentally commited a file without saving it
October 20, 2020, 20:18 (GMT)
UI: Move gesture selection with spacebar

This patch adds a modal key to move the selection box/lasso/line while
drawing it. It also sets "repeat": False on the animation playback key
to prevent accidental playback if the spacebar is released after the
mouse button.

Reviewed By: #user_interface, pablovazquez, Severin

Differential Revision: https://developer.blender.org/D9227
October 20, 2020, 20:06 (GMT)
EEVEE: Screen Space Reflection: Improve self intersection cases.

This patch fix most self intersection comming from reflection rays.
We regenerate the ray if it goes below the shading normal (should be the
geometric normal but we have no access to it here).

Also add the same precision based bias we use for contact shadows.

This fix T81105 Eevee SSR quality regression in 2.91 alpha
October 20, 2020, 20:06 (GMT)
EEVEE: Screen Space Reflection: Fix undefined behavior with invalid LOD

Some issues happened because the lod can become negative in some cases.
Also avoid sampling LOD with interpolation (floor).
October 20, 2020, 19:41 (GMT)
Fix sculpt pen tilt support changing the brush strength

SCULPT_tilt_apply_to_normal expects a normal, and offset was already
scaled by radius. The funcion returns a normalized vector, so the
strength of the brush was changed.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D9275
Revision 9854051 by Ankit Meel
October 20, 2020, 19:39 (GMT)
Cleanup: Clang-tidy -readability-inconsistent-declaration-parameter-name

Changes in source/blender/makesrna only.

No functional change.
Revision f76d9de by Ankit Meel
October 20, 2020, 19:38 (GMT)
Cleanup: Clang-tidy bugprone-redundant-branch-condition

No functional change.
Revision 10e2b77 by Ankit Meel
October 20, 2020, 19:38 (GMT)
Cleanup: makesrna, Clang-tidy else-after-return-fixes.

It got left out of {rBc04088fed1b8faea6b2928bb5e09ab3}.

No functional change.
Revision 6c2bea6 by Ankit Meel
October 20, 2020, 19:32 (GMT)
Cleanup: Clang-tidy silence readability-non-const-parameter

This is a false alarm, `getFileSystemRepresentation` changes the
return value argument.
So used `NOLINTNEXTLINE`.
October 20, 2020, 19:04 (GMT)
CMake/Windows: Compile GMP library as fat library
October 20, 2020, 18:59 (GMT)
UI:Add icon for Displacement Eraser brush

This patch adds icons for the multires displacement
eraser tool in sculpt mode

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D9286
October 20, 2020, 18:55 (GMT)
UI: Add icons for line genture tools

This patch adds icons for line gesture tools
Line mask and line project

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D9285
Revision a264b1f by Rahul Chaudhary
October 20, 2020, 18:52 (GMT)
UI: Add icon for boundary brush

This patch adds icon for the boundary brush in sculpt mode

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D9284
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021