Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 132 / 5574

September 28, 2021, 14:09 (GMT)
Asset Catalog Service: add function to change catalog path

Add `AssetCatalogService::update_catalog_path()` to change the catalog
path of the given catalog, and also change the path of all the catalogs
contained within the given catalog.

Rebuilds the tree structure for the UI, but does not save the new catalog
definitions to disk.

No user-facing changes, just backend preparation for UI work.
September 28, 2021, 13:52 (GMT)
Geometry Nodes: remove empty mesh component in distribute node output
September 28, 2021, 13:24 (GMT)
Fix T91766: NLA Editor - Segmentation fault on strip resize

NLA and Dope Sheet use a specific transform operation to scale.

Unlike the conventional resize operation, `TIME_SCALE` operates on `td->val`.

This is a bit outside the convention of transform operators.

The expected thing in this case would be to work in `td->loc` and use the conventional resize operator.

But for now, to fix the problem, use `td->loc` in the `TIME_SCALE` operation.

This commit also brings a cleanup in the style of some comments and removing unnecessary `memset`.
September 28, 2021, 13:04 (GMT)
Assets: Clear Asset operator variants for clearing/setting Fake User

The Clear Asset operator (`ASSET_OT_clear`) now clears the Fake User.
This makes it symmetrical with the Mark Asset (`ASSET_OT_mark`)
operator, which sets Fake User to ensure assets are always saved to
disk.

Clear Asset now also has a `set_fake_user` boolean option, which allows
users to Clear Asset and set Fake User in one go.

The asset browser now shows these options in the context menu:
- Clear Asset: also clears Fake User. This makes it possible to actually
remove assets from the blend file without leaving the Asset Browser.
- Clear Asset (Set Fake User): keeps the Fake User bit set. This makes
it possible to "hide" the asset from the asset browser, without
loosing the actual data.

Internally, the `ED_asset_clear_id(id)` function now always clears the
Fake User bit. If it was intended that this bit was kept set, it's up to
the caller to explicitly call `id_fake_user_set(id)` afterwards.

Manifest Task: T90844

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D12663
September 28, 2021, 12:37 (GMT)
Cleanup: typo in comment

Noticed by @david_black in D12392, thx!
September 28, 2021, 12:29 (GMT)
Cleanup: remove unused variable

As the title says

Reviewed By: lichtwerk, campbellbarton

Differential Revision: https://developer.blender.org/D12665
September 28, 2021, 11:32 (GMT)
Cleanup: remove incorrect assert

The method works perfectly fine when `resource` is empty.
September 28, 2021, 09:31 (GMT)
Geometry Nodes: move legacy nodes to separate folder

Previously, we were moving them one by one. It's a lot easier
to just move all files at the same time.
September 28, 2021, 09:14 (GMT)
Fix Drivers Editor not hiding vertical part of cursor

When "Show Cursor" is unchecked, the Drivers Editor would still display
the vertical line representing the cursor x.

Probably overseen in {rB65072499c65a} (historically the vertical line
could represent either the current frame of the cursor X in drawing, but
this is now much more separate).

There is no point in seeing part of the cursor in the Drivers Editor if
this is disabled.

Also correct outdated comments.

ref. T91157

Maniphest Tasks: T91157

Differential Revision: https://developer.blender.org/D12391
September 28, 2021, 09:14 (GMT)
Fix Drivers Editor showing playhead on the X Axis

Currently the Drivers Editor shows this (the blue thing can be dragged
to change frame):
{F10647661}

But the Drivers Editors X axis is the output of the driver [which can be
further tweaked by the curve] not time(frame).
So it seems better to not mix them here, it is just confusing to have
two different units on one axis.
Especially since what we really want to look at in X (the drivers output
value) can be in a totally unrelated range compared to frames, so e.g.
we might be interested in a drivers range from 0.0 to 1.0 and a
framerange of 100 to 200, so putting this on one axis just does not make
sense. Better to use a separate timeline for this.

Note 2.79 also did not do this.

Maniphest Tasks: T91157

Differential Revision: https://developer.blender.org/D12392
September 28, 2021, 09:05 (GMT)
Path util: BLI_path_contains() case-insensitive on Windows

Make `BLI_path_contains()` case-insensitive on Windows. This behaviour
is dependent on the platform Blender is running on, like the rest of
BLI_path, and not on the style of paths (Windows-style paths will be
treated case-sensitively when Blender is running on Linux/macOS).
September 28, 2021, 08:49 (GMT)
Fix T91679: Crash when saving bordered render as multilayer exr

The related issue which is fixed by this change is the missing noisy
image pass when denoising and border render is used,

Need to allocate passes after the passes has been copied from the
original render result.
September 28, 2021, 08:44 (GMT)
Cleanup: Move VSE channels check into own util function

Differential Revision: https://developer.blender.org/D12661
September 28, 2021, 08:23 (GMT)
VSE: Implement sanity check for files with more channels than supported

This is a follow up to 8fecc2a8525467ee2fbbaae16ddbbc10b3050d46.

This makes sure future .blend files that have more channels than the
limit won't break Blender.

It can be backported to LTS.

This is part of https://developer.blender.org/D12645

Differential Revision: https://developer.blender.org/D12648
September 28, 2021, 08:19 (GMT)
Fix: field inferencing fails when there are undefined nodes
September 28, 2021, 08:17 (GMT)
Cleanup: support moving InstanceReference
September 28, 2021, 08:17 (GMT)
Geometry Nodes: multi-threading when modifying multiple geometry sets

Differential Revision: https://developer.blender.org/D12652
September 28, 2021, 04:36 (GMT)
UI: avoid excessive padding for labels in headers

Labels in headers reserved space for an icon even when no icon was used.

This is caused by the shared function ui_text_icon_width adding 1.5x
a buttons X-units width the the width of the string.

Menu buttons detected this and subtracted the extra padding.

Instead of adding the same workaround for labels,
add ui_text_icon_width_ex that takes a padding argument.

Add presets for 'default', 'compact' and 'none' to avoid duplicating
padding values.

This allows removal of hard-coded label scaling for the add-object tool.
September 28, 2021, 04:00 (GMT)
Asset Browser: Allow World assets to be drag/dropped onto the viewport

While World data has always been able to be marked as an asset, there
was no way to actually use them from the asset browser. This change
allows users to drag-drop world assets onto the Viewport and have them
appended/linked to their scene.

Differential Revision: https://developer.blender.org/D12566
Revision c53ffda by Hans Goudey
September 27, 2021, 18:29 (GMT)
Cleanup: Fix incorrect comments
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021