Blender Git Commits

Blender Git "master" branch commits.

Page: 137 / 5574

September 24, 2021, 12:42 (GMT)
UUID: add less-than operator

Add `operator<` to C++ class to allow lexicographic ordering of UUIDs.

This will be necessary when writing asset catalogs to disk in a predictable
(i.e. ordered) manner.
September 24, 2021, 12:42 (GMT)
Asset Catalogs: write catalogs sorted by path & UUID

When writing asset catalog definition files, order the catalogs by
(path, UUID). This ensures that every write produces the same file, playing
nice with versioning / synchronisation systems.
September 24, 2021, 11:38 (GMT)
Codestyle: Add brackets around body of if statements.
September 24, 2021, 11:33 (GMT)
Nodes: make dot in socket shape circular

Previously, it was a diamond shape when the overall
shape was a diamond.
September 24, 2021, 11:10 (GMT)
Fix T91192: Context.copy() crashes on file load

The `ui_list` lookup from 87c1c8112fa44ccb94a3e996b7499d6577d85d7f
didn't account for the region being unset.
September 24, 2021, 11:10 (GMT)
Cleanup: old-style-declaration warning
September 24, 2021, 10:53 (GMT)
Asset Catalogs: fix trailing slash test case

The "path with trailing slash" test catalog was using the same path as
another catalog, which meant it was ignored after doing the path
cleanup. It's now different in the test file in SVN, so it'll actually
show up in the test.
September 24, 2021, 10:40 (GMT)
LibOverride: Deprecate Proxies: Add auto-conversion on file load.

This commit also add an experimental userPreferences to prevent proxies
conversions on file load, and reporting for amount of coverted proxies
(and possible issues).

Note that potentially linked proxies from other libraries are not
hamdled here (this feature seems to be broken anyway in master
currently?).
September 24, 2021, 10:40 (GMT)
LibOverride: deprecate Proxies: Remove 'Make Proxy' operator.
September 24, 2021, 10:40 (GMT)
LibOverride: Add utils to convert all proxies to overrides.
September 24, 2021, 09:50 (GMT)
Geometry Nodes: new Distribute Points on Faces node

This adds a replacement for the deprecated Point Distribute node.

Arguments for the name change can be found in T91155.
Descriptions of the sockets are available in D12536.

Thanks to Jarrett Johnson for the initial patch!

Differential Revision: https://developer.blender.org/D12536
September 24, 2021, 09:24 (GMT)
BLI: expose more noise hash functions in header

This is a follow up of the previous commit.
These functions are useful for other areas of Blender as well.
September 24, 2021, 08:55 (GMT)
Fix: incorrect socket shape for noise texture input
September 24, 2021, 08:55 (GMT)
BLI: make noise hash functions available in header
September 24, 2021, 08:52 (GMT)
Weightpaint Gradient tool: expose falloff to the UI

By default, we'll always get a falloff like this from the tool:
{F10559413}

But in the context of using vertexgroups in modifiers/modeling, a choice
on how the gradient falloff of the Weightpaint Gradient tool is shaped
would be desirable:
"real" linear:
{F10559416}
Custom:
{F10559421}
{F10559428}

The way the Weightpaint gradient tool works is a bit outside the usual
tools that use brushes [even though it creates a brush on the fly in
`WPGradient_userData`].
However, it does not have an entry in `eBrushWeightPaintTool` and adding
one there does not play nice for the same reasons (not "really" being
integrated in the brush-based tools).

So in order to expose the brush curve in the UI, we would have to do one
of the following:
- [1] try to use `VIEW3D_PT_tools_brush_falloff`, for this to work:
-- make all kinds of exception in python super classes [`FalloffPanel`,
`BrushPanel`, `UnifiedPaintPanel`, ... -- including making real entries
in `eBrushWeightPaintTool`] to get a proper tool mode and...
-- .. to also make sure Falloff Shape and Front-Face Falloff are not
available [which the tool seems to just not support in its current form]
- [2] just have a simple, contained panel for this tool alone

This patch implements [2] and adds it as part of the ToolDef (could also
be done in `VIEW3D_HT_tool_header`, but again, I think this is nice to
keep separate from the usual tools)
{F10559482}
{F10559485}

Testfile:
{F10559442}

Fixes T91636

Maniphest Tasks: T91636

Differential Revision: https://developer.blender.org/D12614
September 24, 2021, 08:45 (GMT)
Cleanup: clang format
September 24, 2021, 08:29 (GMT)
Cleanup: asset catalogs, fix clang-tidy warning

Remove unnecessary call to `std::string::c_str()`.

No functional changes.
September 24, 2021, 08:25 (GMT)
Cleanup: clang-tidy
September 24, 2021, 06:41 (GMT)
FileBrowser: Reduce Overhead Browsing Libraries.

When Browsing libraries the asset files were opened multiple times.
once to determine the needed groups to query and once for each
group to query the items in the group. For file browsing this makes sense
but for asset browsing this can be reduced.

This patch will load the asset files recursively and only opens them once.
Another change is that only the assets are requested and not filtered out
later in the process.

This patch is needed to simplify the library indexing. Where
we need access to the full library content.

## The numbers ##

Benchmarked by adding scenes of the spring open movie to the default
asset library. Refreshing the asset library would recursively load all the files
there.

| **8bc27c508a** | Processed 317 'directories/libraries' | 7.573986s |
| **Patch** | Processed 42 'directories/libraries' | 0.821013s |

{F10442811}

Reviewed By: mont29, Severin

Maniphest Tasks: T91406

Differential Revision: https://developer.blender.org/D12499
September 24, 2021, 05:44 (GMT)
Hair Info Length Attribute

Goal is to add the length attribute to the Hair Info node, for better control over color gradients or similar along the hair.

Reviewed By: #eevee_viewport, brecht

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