Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 225 / 5574

June 28, 2021, 15:02 (GMT)
Fix UI glitch in outliner when hiding excluded collections.

In ViewLayer view, overrides of excluded collections would then show one
level higher, due to bad handling of those excluded collection in draw
code.

Reported by studio, thanks.

@jbakker should be backported to 2.93LTS.
Revision 6c97c7f by Hans Goudey
June 28, 2021, 15:00 (GMT)
Fix T89350: Emboss color missing from icon buttons without emboss

Passing `emboss=False`set `UI_EMBOSS_NONE` in the layout, which
completely disables button background colors for things like animation
state. This commit changes that to `UI_EMBOSS_NONE_OR_STATUS`,
which effectively restores the behavior to what it was prior to the
addition of that flag, with the added option to completely disable
the status emboss with `UI_EMBOSS_NONE`.
June 28, 2021, 14:53 (GMT)
Geometry Nodes: initial attribute list for meshes

This adds a new Attributes panel in the mesh properties editor.
It shows a list of all the generic attributes on the mesh.
In the future, we want to show built-in and other attributes in the
list as well. Related technical design tasks: T88460, T89054.

There is also a new simple name collision check that warns the user
when there are multiple attributes with the same name. This can be
problematic when the attribute is supposed to be used in geometry
nodes or during rendering.

Differential Revision: https://developer.blender.org/D11276
Revision 0afe4e8 by Hans Goudey
June 28, 2021, 14:51 (GMT)
Fix name of UI emboss RNA enum item

This was a stupid mistake in my original commit that added this item.
While this is an API breakage, the name is simply wrong, and it is only
6 months old, and slightly niche.

Differential Revision: https://developer.blender.org/D11701
June 28, 2021, 14:48 (GMT)
Cleanup: remove unused macro parameters
June 28, 2021, 14:48 (GMT)
Draw: make 'ibo.lines_loose' extracting safer

No functional changes.
June 28, 2021, 14:48 (GMT)
Transform: Move "Proportional Size" and "AutoIK-Len" values to the beginning of the header

This prevents the text from shaking while transforming.
Revision cf21ba3 by YimingWu
June 28, 2021, 14:26 (GMT)
LineArt: Occlusion effectiveness support

This patch adds a function where you can specify occlusion effectiveness from 0 to 255 layers per face for a given mesh material.

Reviewed By: Sebastian Parborg (zeddb)

Ref D11308
June 28, 2021, 12:05 (GMT)
Cycles: reduce shadow terminator artifacts

Offset rays from the flat surface to match where they would be for a smooth
surface as specified by the normals. In the shading panel there is now a
Shading Offset (existing option) and Geometry Offset (new).

The Geometry Offset works as follows:
* 0: disabled
* 0.001: only terminated triangles (normal points to the light, geometry
doesn't) are affected
* 0.1 (default): triangles at grazing angles are affected, and the effect
fades out
* 1: all triangles are affected

Limitations:
* The artifact is still visible in some cases, it could be that some quads
require to be treated specifically as quads.
* Inconsistent normals cause artifacts.
* If small objects cast shadows to a big low poly surface, the shadows can
appear to be in a wrong place - because the surface moved slightly above
the geometry. This can be noticed only at grazing angles to light.
* Approximated surfaces of two non-intersecting low-poly objects can overlap
that causes off-the-wall shadows.

Generally, using one or a few levels of subdivision can get rid of artifacts
faster than before.

Differential Revision: https://developer.blender.org/D11065
June 28, 2021, 11:57 (GMT)
Fix Cycles not rendering motion vector passes after recent changes

Causing regression tests to fail.
June 28, 2021, 11:16 (GMT)
BLI: improve enum operators

* Use unsigned integer types for bit operations.
* Use 64 bit integer instead of 32 bit.
* Support scoped enumes (aka `enum class`) by adding some more casts.
June 28, 2021, 11:16 (GMT)
Functions: improve CPPType

* Reduce code duplication.
* Give methods more standardized names (e.g. `move_to_initialized` -> `move_assign`).
* Support wrapping arbitrary C++ types, even those that e.g. are not copyable.
June 28, 2021, 11:12 (GMT)
Fix T89455: Cycles crash when rendering a Mesh with autosmooth

The crash was caused by a mistake in 5f9677fe0c533b008b815d7fee0b56509a414ab7
where the pointers to the custom data layers would be overwritten with the one
for the first layer, as CustomData_duplicate_referenced_layer is only about the
first layer. customData_duplicate_referenced_layer_index should be used instead
to duplicate the right layer.
June 28, 2021, 10:23 (GMT)
GPU: Separate compiler log from shader.

Current compiler log parser is to complex to follow. Moving it to its
own compile unit before refactoring.
June 28, 2021, 10:23 (GMT)
GPU: Refactored +cleanup compilation log parsing.

Old implementation has a single parser of many different
formats. With the introduction of Vulkan this would lead
to another parser in the same function. This patch
separates the log parsing using a visitor pattern so the
log parsing can be configured per GPU backend or even
per driver.

With Vulkan we manage the compiler our self so the parsing
will become more straight forward. The OpenGL part depends
on many factors (OS, Driver) and perhaps even GPU.
June 28, 2021, 10:19 (GMT)
Cleanup: use doxy sections for editcurve_select.c

Signed-off-by: Campbell Barton <ideasman42@gmail.com>
June 28, 2021, 09:57 (GMT)
Fix edit-mesh random select regression in random seed use

Fix regression in 9c202281287743494fd7d81a13970053bc8a33b5
that wasn't using the random seed correctly.
June 28, 2021, 09:51 (GMT)
Apply random selection precisely for curves, lattices & objects

This patch is part of: T87228.
Support accurate random selection for:

- CURVE_OT_select_random
- LATTICE_OT_select_random
- OBJECT_OT_select_random

Ref D11685
June 28, 2021, 09:35 (GMT)
BLI_rand: support for randomizing bitmaps

Add utility functions:

- BLI_bitmap_randomize
- BLI_rng_shuffle_bitmap

Part of D11685
Revision addb203 by YimingWu
June 28, 2021, 09:34 (GMT)
Cleanup: Fix const warnings in buttons_context.c
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021