Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 209 / 5574

July 15, 2021, 07:53 (GMT)
Cleanup: ensure one newline at end of file, strip trailing space
July 15, 2021, 07:52 (GMT)
CMake: update config for checking utility
July 15, 2021, 04:45 (GMT)
BLI_task: add a callback to initialize TLS

Useful when TLS requires it's own allocated structures.
July 15, 2021, 04:37 (GMT)
BLI_memarena: support merging memory arenas

Useful when thread-local storage has it's own memory arena containing
data which is kept after the multi-threaded operation has finished.
July 15, 2021, 00:22 (GMT)
deps_builder: zstd 1.5.0

Having zstd available is a requirement for landing D5799

Reviewed By: sybren

Differential Revision: https://developer.blender.org/D11079
July 14, 2021, 22:15 (GMT)
GHOST/wayland: create mmap-ed file manually if memfd_create is unavailable
July 14, 2021, 21:17 (GMT)
CMake: Have CMake Control the C++ version.

We were manually setting the compiler flags
for C++17 support for this previously. CMake
can do this for us in a uniform way without
having to worry about compiler specifics.

Setting these flags manually somehow brought
out some unwanted behaviour (CMake switching
back to C++14) in the nightly CMake builds.

Unsure if that's a CMake bug or planned
new behaviour for future version, but best
to play it safe.

These flags are supported since CMake 3.1
so should not break anything.

Reviewed by: Campbell Barton

Differential Revision: https://developer.blender.org/D11891
Revision 093074a by Hans Goudey
July 14, 2021, 19:13 (GMT)
Bezier Spline: Add a more generalized insertion utility

This logic is from the curve sundivide node, used to add points with
proper handles in between two existing points. However, the same logic
is used for trimming of Bezier splines, and possibly interactive point
insertion in the future, so it's helpful as a general utility.

The logic is converted to depend on a bezier spline instead of being
static. A temporary segment spline can be used for the latter use case.
July 14, 2021, 15:49 (GMT)
Cleanup: Layer resync: Split object/base resync part in own function.

No behavioral change expected here.
Revision c202d38 by Hans Goudey
July 14, 2021, 14:51 (GMT)
Python API: Add functions to ensure and clear IDProperties

This adds id_properties_clear() and id_properties_ensure() functions
to RNA structs. This is meant as an initial change based on discussion
in review of D9697. However, they may be useful in other situations.

The change requires refactoring the internal idproperties callback to
return a pointer to the IDProperty pointer, which actually turns out
to be quite a nice cleanup.

An id_properties attribute could be added in the future potentially.

Differential Revision: https://developer.blender.org/D11908
July 14, 2021, 14:12 (GMT)
Tests: support graphing peak memory in Cycles performance tests

The general graphing mechanism will create one graph for each output
variable. So it's not limited to time and memory, but that is what the
Cycles tests now output.
Revision 2acebca by Hans Goudey
July 14, 2021, 14:11 (GMT)
Cleanup: Avoid duplication in line art stroke generation

The BKE_gpencil_stroke_add_points API function worked well for
creating the primitives in the add object menu, but it expected a
specific data format that doesn't make sense in a dynamic context.
As evidence of that we can see the way source data was duplicated
in the line art file just to use this API function.

This commit solves that problem in two ways:
- Clean up the line art function (this should make it faster too).
- Move/rename the function so its intended use is more clear.

Differential Revision: https://developer.blender.org/D11909
July 14, 2021, 12:23 (GMT)
Cleanup: Turn PointCache flags defines into an anonymous enum.
July 14, 2021, 12:23 (GMT)
Fix T89771: Cloth disk cache is not read on library overrides in some cases.

Issue would happen when the original, linked data already had 'Disk Cache'
setting enabled. Override would then see no difference with linked data,
and not create any rule for it (as expected).

Root of the issue was that in Cloth modifier copy code, those disk cache
settings were not copied at all, so every time local overrides were
re-generated by copying linked data, those flags would be reset to their
default values.

NOTE: this might exist in other PointCache usages as well, but this code is
in such a bad state that I'd rather do minimal strictly needed changes
there, on a case-by-case basis. Proper recode of that whole system is
wayyyyy out of scope here.
July 14, 2021, 12:23 (GMT)
Fix (unreported) LibOverride diffing generating operations for non-editable properties.

Non-pointer-like properties that are not editable should never generate
override operations.

While harmless (those would never be applied back anyway), better not
clutter override operations list, and also enjoy the symbolic
performances improvement here.

NOTE: Pointer-like properties (pointers and collections) remain
processed as usual here since they usually imply recursivity. We could
make an exception to the exception for ID pointers, but for now I don't
think this is worth it.
July 14, 2021, 11:56 (GMT)
Fix T88908: Incorrect path handling in adding strips

When image strip is added from python using `image_strip_add` operator
and directory path is not terminated with slash, last part of directory
was ignored.

Use `BLI_join_dirfile` instead of simple string concatenation.
July 14, 2021, 11:54 (GMT)
Fix T88088: Cycles and Eevee Vector Rotate node inconsistent with zero axis

Pass along the unmodified vector in this case.
July 14, 2021, 11:54 (GMT)
Fix crash displaying invalid enum value with translations enabled

Found loading a cycles-x .blend file saved with different integer values for
enum items.
July 14, 2021, 11:22 (GMT)
Fix T89826: VSE snapping with constrained axis

Constraining to X axis caused snapping to not work at all. Constraining
to Y axis caused snapping indicator to be drawn, when snapping doesn't
occur.

Reviewed By: mano-wii

Differential Revision: https://developer.blender.org/D11898
July 14, 2021, 09:55 (GMT)
Fix T89851: Geometry nodes: wrongly detected "Node group has unidentified
nodes or sockets" error

rBfe22635bf664 introduced a utility to check for this (but it was always
returning true).

This wasnt a problem in master (since it is unused there), but in the
2.93 branch, this utility is actually used and the error results in all
geometry nodetrees to appear with the "Node group has unidentified nodes
or sockets" message (and being unusable).

Now return false in has_undefined_nodes_or_sockets if all nodes and
sockets have been successfully checked.

This commit then needs to end up in the 2.93 branch.

Maniphest Tasks: T89851

Differential Revision: https://developer.blender.org/D11911
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021