Blender Git Commits

Blender Git "master" branch commits.

Page: 143 / 5574

Revision 41e3bf8 by Hans Goudey
September 21, 2021, 22:17 (GMT)
Geometry Nodes: Add legacy warning and "View Legacy" operator

This commit adds warning messages to "legacy" nodes that will be
removed in the future. The warning is shown in the node header, but
it is not printed in the terminal or displayed in the modifier. It is
also not propogated to node groups, but that is a more general task.

If the modifier's node tree has executed a deprecated node, it will
display a warning and a "Search" button that will select the nodes and
pan to them in the node editor. This doesn't open child node trees and
select nodes in there, because I want to keep this operator simple and
avoid wasting a lot of time perfecting this behavior.

Differential Revision: https://developer.blender.org/D12454
September 21, 2021, 20:20 (GMT)
Audaspace: porting upstream pulseaudio fixes.

Fixes T89045 and T91057.
September 21, 2021, 19:54 (GMT)
UUIDs: rename UUID to bUUID

Rename the `UUID` struct to `bUUID`. This avoids a symbol clash on
Windows, which also defines `UUID`. This only pops up when a `UUID`
field is used in the DNA code, which is why it wasn't a problem before
(it will be once D12589 lands).

No functional changes.
Revision 6d162d3 by Hans Goudey
September 21, 2021, 19:20 (GMT)
Geometry Nodes: Fill instances separately in the curve fill node

With this commit, each referenced instance data will be converted to
a geometry instances and processed separately. This should result in
a large speedup when the instances component has many insances
referring to the same data.

This change can act as a blueprint for other nodes that need to
implement similar behavior. It adds some helper functions on the
instances component to make that easier.

Thanks to Erik Abrahamsson for a proof of concept patch.

Differential Revision: https://developer.blender.org/D12572
September 21, 2021, 19:11 (GMT)
Geometry Nodes: String manipulation nodes

This patch adds four new nodes to a new "Text" category:
- String Length: Outputs length of a string
- String Substring: Outputs part of a string
- Value to String: Converts a value to a string
- String Join: Concatenates multiple strings with a delimiter

The initial use case of these nodes is the upcoming string to curve
node. However, they could also be used to calculate dynamic attribute
names, or with string attributes in the future.

Differential Revision: https://developer.blender.org/D12532
Revision 05ce527 by Hans Goudey
September 21, 2021, 18:39 (GMT)
Geometry nodes: Output curve normals from the normal node

The code is basically the same as rB4d51af68adb273.
Revision 4d51af6 by Hans Goudey
September 21, 2021, 18:11 (GMT)
Geometry Nodes: Curve tangent node

This node outputs the direction vector, or tangent of a curve at every
control point. For poly splines this is simply the evaluated tangents,
so it all works very simply. For Bezier splines it uses the tangent at
the evaluated point corresponding to each control point, and NURBS
are interpereted as poly splines built from their control points.

Internally the node is called "Input Tangent" to simplify using it for
mesh tangents as well in the future like the "Normal" node.

Differential Revision: https://developer.blender.org/D12581
September 21, 2021, 18:02 (GMT)
Cleanup: Clang-tidy warnings
September 21, 2021, 17:53 (GMT)
UI: Style drag-drop indicators as tooltips

Currently, the drop indicator colors are hardcoded to white text on semi-transparent black background.
This patch makes the drop indicator use the tooltip theme settings, as they serve a similar purpose.

{F10530482, size=full}

All built-in themes seem to work well and got improved readability.

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D12588
Revision b37d36a by Hans Goudey
September 21, 2021, 17:42 (GMT)
Fix: Add versioning for geometry nodes attribute input toggle

rB8e21d528cab98 neglected to add versioning to add the new
"use_attribute" and "attribute_name" properties to the modifier input
list. Though they are added if the modifier's interface is updated, that
doesn't happen when the file is loaded, so patch adds them manually.
Another solution would be calling `MOD_nodes_update_interface`,
but that would require including the modifiers module.

Differential Revision: https://developer.blender.org/D12535
Revision 3642e17 by Hans Goudey
September 21, 2021, 16:56 (GMT)
Cleanup: Move curve to mesh node implementation to blenkernel

I plan to use this for curve object data conversion to mesh in D12533,
and possibly for the implicit curve to mesh conversion in the curve
and text object modifier stack in the future.

Differential Revision: https://developer.blender.org/D12585
Revision fde9c3b by Hans Goudey
September 21, 2021, 16:20 (GMT)
Fix: Incorrect versioning for float IDProperty default array

The versioning has to have different behavior for when the old default
value had a float type rather than a double type. Also use memcpy
rather than dupalloc, since it's a bit clearer.
September 21, 2021, 15:55 (GMT)
Cleanup: else-after-return
September 21, 2021, 15:51 (GMT)
Functions: make asserts more correct

It is valid to e.g. copy construct an integer in the same place,
because it is a trivial type. It does not work for types like std::string.

This fixes a crash reported in D12584 where it would copy a buffer
into itself. We should probably also avoid doing this copy alltogether
but that can be done separately.
September 21, 2021, 15:50 (GMT)
Cleanup: mention `UUID_STRING_LEN` in comment

Mention that `UUID_STRING_LEN` exists in the documentation of
`BLI_uuid_format()`.

No functional changes.
September 21, 2021, 15:29 (GMT)
Fix T91534: GPencil interpolate Sequence fails if stroke has 0 points

In some cases the stroke has 0 points and this must be skipped in the interpolation.
Revision 2e6a735 by Henrik Dick (weasel) / YimingWu
September 21, 2021, 15:03 (GMT)
GPencil: Curvature support for length modifier

Extend the stroke following an approximated circluar/helical curve.

This can be used as an effect for lineart or on its own as helix generator.

Reviewed By: Sebastian Parborg (zeddb), Hans Goudey (HooglyBoogly), YimingWu (NicksBest), Antonio Vazquez (antoniov), Henrik Dick (weasel)

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

# ?????????????? '#' ????????????????
# ?????????
#
# ???? master
# ????????? 'origin/master' ???
#
# ???????
# ??? source/blender/blenkernel/BKE_gpencil_geom.h
# ??? source/blender/blenkernel/intern/gpencil_geom.cc
# ??? source/blender/gpencil_modifiers/intern/MOD_gpencillength.c
# ??? source/blender/makesdna/DNA_gpencil_modifier_defaults.h
# ??? source/blender/makesdna/DNA_gpencil_modifier_types.h
# ??? source/blender/makesrna/intern/rna_gpencil_modifier.c
#
September 21, 2021, 14:39 (GMT)
Fix T87801: Eevee ambient occlusion is incorrect on M1 macMini

The issue was caused by `textureSize()` returning the size of the level 0
even when the min texture level is higher than 0.

Using a uniform to pass the correct size fixes the issue.

This issue also affected the downsampling of radiance for reflections and
refractions.

This does not affect anything other than the recusive downsampling shaders.
September 21, 2021, 14:06 (GMT)
Fix T91458: Displaying dope-sheet with sequencer keyframes crashes

Error in e6194e735791b42feb51e810a4910a41d999d3bf.
September 21, 2021, 13:56 (GMT)
Cleanup ClangTidy warning.

Different parameter name in function declaration and implementation.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021