Blender Git Commit Log

All Blender Git commits.

Page: 214 / 8462

September 23, 2021, 18:33 (GMT)
Fix: Build issue with MSVC

header for std::function was not included

reported/fixed by Charlie on chat
September 23, 2021, 18:11 (GMT)
Paint: prevent RenderResults and Viewers where unappropriate

Using a RenderResult (or a Viewer) was never really working (think you
cant get a real ImBuff from these) -- cannot use it as a clone, stencil
or canvas [Single Image paint texture slot].

In the case of using it as a 2D paint clone image this would also crash
[due to the Image Editor drawing refactor in 2.91].

Now [in the spirit of T73182 / D11179], prevent using these where
unappropriate by using rna pointer polling functions.

Also add a security check for the 2D paint clone image crash in case a
stencil ImBuff cannot be provided for some reason, but generally old
files are now patched in do_versions_after_linking_300 (thx @brecht!).

Fixes T91625.

Maniphest Tasks: T91625

Differential Revision: https://developer.blender.org/D12609
September 23, 2021, 17:39 (GMT)
Cleanup: Use const in previously committed function
September 23, 2021, 17:33 (GMT)
UI: Tree-View API for easy creation of tree UIs

This follows three main targets:

* Make creation of new tree UIs easy.
* Groundwork to generalize tree UIs (so e.g. Outliner, animation
channels, asset catalogs and spreadsheet data-sets don't have to
re-implement basic tree UI code) or even other data-view UIs.
* Better separate data and UI state. E.g. with this, tree-item selection
or the open/collapsed state can be stored on the UI level, rather than
in data. (Asset Catalogs need this, storing UI state info in them is
not an option.)

In addition, the design should be well testable and could even be
exposed to Python.

Note that things will likely change in master still. E.g. the actually
resulting UI isn't very nice visually yet.

The design is documented here:
https://wiki.blender.org/wiki/Source/Interface/Views

Differential Revision: https://developer.blender.org/D12573
Revision eb0eb54 by Hans Goudey (master)
September 23, 2021, 16:41 (GMT)
Fix D12533: Simplify curve object to mesh conversion

This patch simplifies the curve object to mesh conversion
used by the object convert operator and exporters.

The existing code had a convoluted model of ownership, and did quite
a bit of unnecessary work. It also assumed that curve objects always
evaluated to a mesh, which is not the case anymore.

Now the code checks if the object it receives is evaluated. If so,
it can simply return a copy of the evaluated mesh (or convert the
evaluated curve wire edges to a mesh if there was no evaluated mesh).
If the object isn't evaluated, it uses a temporary copy of the object
with modifiers removed to create the mesh in the same way.

This follows up on the recent changes to curve evaluation,
namely that the result is always either a mesh or a wire curve.

Differential Revision: https://developer.blender.org/D12533
September 23, 2021, 16:32 (GMT)
Cycles: improve Auto Tile option description

Ref T91645
September 23, 2021, 16:32 (GMT)
Fix T91626: Cycles sss behind fully transparent object renders differently
September 23, 2021, 16:27 (GMT)
Cleanup: UUID, fix clang-tidy warnings

Use explicit `uint32_t` instead of `uint`, add a missing end-of-namespace
comment, and change `auto` to `const auto *`.

No functional changes.
September 23, 2021, 16:27 (GMT)
bUUID: make it explicit the default constructor produces the nil value

The implicit default constructor zeroes all plain data fields, and now
this behaviour is explicit & tested for in a unit test.
September 23, 2021, 15:59 (GMT)
Geometry Nodes: simplify looping over attributes in geometry set

This adds three new methods:
* `InstancesComponent::foreach_reference_as_geometry(...)`
* `GeometrySet::attribute_foreach(...)`
* `GeometrySet::gather_attributes_for_propagation(...)`

The goal is that these iteration primitives can be used in places
where we use more specialized iterators currently.

Differential Revision: https://developer.blender.org/D12613
September 23, 2021, 15:59 (GMT)
Geometry Nodes: remove old method to iterate over attributes

The previous commit added a new method to the same in a better way.
September 23, 2021, 15:58 (GMT)
Cleanup: asset catalogs, correct assertion message

There is no such thing as a "relative path" when it comes to asset catalog
paths (they're always absolute).

No functional changes.
September 23, 2021, 15:58 (GMT)
Cleanup: bUUID, document the constructors

No functional changes.
September 23, 2021, 15:58 (GMT)
UUID: place C++ code in correct namespace

Put the `bUUID` class in the `blender` namespace, instead of the
`blender::bke` namespace.

As a result, some C++ code now correctly uses the C++ class, where
previously it would use the C struct and use implicit casting where
necessary. As a result, support for initializer lists had to be
explicitly coded and in another place an explicit `::bUUID` was
necessary to avoid ambiguity.
September 23, 2021, 15:58 (GMT)
UUID: add `!=` operator for comparing UUIDs

Make it possible to unit test with `EXPECT_NE(uuid1, uuid2)`.
September 23, 2021, 15:48 (GMT)
Fix Cycles compiler warning on GCC 11

For shadow rays there are no closures, leave out the closure merging code
there to avoid warnings about accessing closure memory that does not exist.
September 23, 2021, 15:48 (GMT)
Fix T91641: crash rendering with 16k environment map in Cycles

Protect against integer overflow.
September 23, 2021, 15:45 (GMT)
Cleanup: Replace iterator class, general cleanup

Instead of the iterator class which requires a bunch of boilerplate
code, use a callback based iterator. Also removed a overly pedantic
assert and wrong friend declarations.
September 23, 2021, 15:41 (GMT)
Cleanup: Remove hardcoded values and rename keyframe shape shaders

No functional change.

The shader is complicated by itself, having hardcoded values makes it
even more cryptic.

I also renamed the shader because the shader is not for the keyfarme diamond only,
but for all the keyframe shapes.

Differential Revision: https://developer.blender.org/D12615
September 23, 2021, 15:26 (GMT)
Cleanup: Sync minor change with master
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021