Blender Git Commits

Blender Git "master" branch commits.

Page: 129 / 5574

September 29, 2021, 12:06 (GMT)
Cycles: Ensure finite displacement and background evaluation

Avoids possible numerical issues in the path tracing kernel, which
is most important for displacement as non-finite values in BVH can
lead to infinite node recursion during traversal.

Differential Revision: https://developer.blender.org/D12690
September 29, 2021, 12:05 (GMT)
Cycles: Make sure GPU transfer is finished prior display update

Noticed while looking into flickering issues in viewport.

Doesn't seem to solve the flicker issue for me, but is something
what is supposed to be happening anyway.

Differential Revision: https://developer.blender.org/D12673
Revision adaf4f5 by Julian Eisel
September 29, 2021, 11:18 (GMT)
Support loading catalogs in the Current File asset library

When the Asset Browser shows the "Current File" asset library, now it
also attempts to load an asset catalog definition file from location of
the current .blend file. This happens as follows:
* First, see if the file is inside of an asset library that is "mounted" in the
Preferences. Load the catalogs from there if so.
* Otherwise, if the file is saved, load the catalogs from the directory the
file is saved in.
* If the file is not saved, no catalogs will be loaded.

Unit tests are being worked on in D12689.

Creating catalogs from the "Current File" asset library still doesn't work, as
the asset catalog service doesn't construct an in-memory catalog definition
file in that case yet.

Differential Revision: https://developer.blender.org/D12675
Revision 78b9a8c by Gaia Clary
September 29, 2021, 11:09 (GMT)
Add an option to silence bpy.ops.anim.keyframe_delete_v3d when used in Addons

The issues:

1.) When we want to remove keyframes from a range of frames in an
action,
then we can use bpy.ops.anim.keyframe_delete_v3d to remove the keys
frame by frame. However, whenever the operator hits a frame with no
keyframes, then it generates an error. While when it hits a frame
with keyframes, then it reports the numbner of removed keys.

This creates a lot of unnecessary noise in the Blender console.

2.) Furthermore a related issue is that WM_event_add_notifier() is
called also when no frames where removed. This seems to significantly
slow down the removal of keyframes in a range of frames at least
when i use vscode for debugging.

A proposal for improvement:
This patch adds an attribute 'confirm_success' which controls
if the operator reports back what it did (or did not) while
executing. Silent mode would then be called like this:

bpy.ops.anim.keyframe_delete_v3d(confirm_success=False)

Note: confirm_success is True by default so this patchj does not
change the behavior of Blender, it only gives the option to scripts.

3.) Personal note:
I have chosen the attribute name to be equal as it is used
in other related operators. However i rather would rename the
attribute to "verbose" (preferred) or "with_confirm". But i let this
to be decided by the reviewers. Thanks for your time to review!

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D12629
September 29, 2021, 10:53 (GMT)
Fix T88954: Rearranging of modifiers for linked objects no longer works.

There would be no modifier set in context in drag and drop case, in that
case try to get active modifier from active object instead.
September 29, 2021, 10:40 (GMT)
Fix T91756: String to Curve node produces NaN when size is zero
September 29, 2021, 10:03 (GMT)
UI: swap tool and regular header

Swap the tool-header and header order so the tool-header
so the header is always next to the window edge.

Note that files saved in 3.0 will have overlapping headers when opened
in any version of Blender before this commit.

Reviewed By: Severin, fsiddi

Maniphest Tasks: T91536

Ref D12631
September 29, 2021, 09:01 (GMT)
Fix T91802: vertex color layer name collides with itself

Vertex colors are already included in `mesh.attributes`. So they don't
have to be added to the collision checks separately.
September 29, 2021, 08:55 (GMT)
Fix T91767: crash when instancing geometry coming from modifier

The issue was that the `GeometrySet` that comes from the modifier does
not have full ownership of the mesh for legacy reasons to avoid copies.
Calling `ensure_owns_direct_data` makes sure that the geometry set
actually owns the geometry so that it can be instanced.
September 29, 2021, 08:10 (GMT)
Geometry Nodes: instance on points in instances

For consistency with other nodes, we also want to process
all instances in the Points input independently. This allows
for more efficient instancing of many objects but also leads
to nested instancing. All instances are processed in their
local space, so that instances don't have to be realized.

Differential Revision: https://developer.blender.org/D12660
September 29, 2021, 07:58 (GMT)
Fix/bypass doversion for wire new colors

Some cases were not covered by the original doversion in
4a0ddeb62bb. For now we make it always change the wire color regardless
of whether it was changed before or not.

This do a subversion bump.
September 29, 2021, 07:53 (GMT)
UV: Pack to closest/active UDIM

Implements T78397
Extends the functionality of pack islands operator to allow packing UVs
to either the closest or active UDIM tile.
This provides 2 new options for packing UVs :

* Closest UDIM: Selected UVs will be packed to the UDIM tile they were
placed on. If not present on a valid UDIM tile, the UVs will be packed
to the closest UDIM in UV space
* Active UDIM: Selected UVs will be packed to the active UDIM image tile
In case, no image is present in the UV editor, then UVs will be packed
to the tile on the UDIM grid where the 2D cursor is located.

Reviewed By: campbellbarton

Maniphest Tasks: T78397

Ref D12680
September 29, 2021, 07:48 (GMT)
UV Editor: Grid and snapping improvements

Implements T89789, T89792, custom grid (described as dynamic grid in
T78389) and UV grid snapping (T78391)
Replaces the default UV editor grid with 2 new types of grid :

* Custom grid: Allows the user to create an NxN grid, where the value
of N is specified by the user.
* Subdividing grid: Subdivides the UV editor grid when the user
zooms in the viewport and vice versa when zooming out.

UV snapping improvements :
* Increment snapping: Increment values for snapping are calculated based
on which grid type is being used in the UV editor
(subdividing or custom). In general the increment value is equal to
the distance between 2 visible grid lines.
* Absolute grid snap: New toggle added to increment snapping option in
the UV editor, allows UV grid snapping during translation.

Reviewed By: campbellbarton

Ref D12684
September 29, 2021, 07:12 (GMT)
Fix T91237: Wrong Editors could sync animation 'Visible Range'

This was reported for the Outliner.

It was possible to set 'show_locked_time' on any space (via python, not
sure if there are other ways to achieve this).
Navigating in an animation editor obviously ruined the layout in certain
Editors that are not made for this.

Now restrict syncing to editors that support it well (the ones that have
this setting exposed in their menus) and prevent setting this in RNA.

Maniphest Tasks: T91237

Differential Revision: https://developer.blender.org/D12512
Revision eddc3f5 by Hans Goudey
September 29, 2021, 04:19 (GMT)
Cleanup: Add constructor for AttributeFieldInput
September 29, 2021, 04:09 (GMT)
Cleanup: Compositor: Migrate color nodes to new socket builder
September 29, 2021, 01:36 (GMT)
UI: Update Levels Nodes

- Instead of making the enum expanded leave it in menu form.
- Use full words instead of letters.

Differential Revision: https://developer.blender.org/D12686
September 29, 2021, 00:33 (GMT)
Nodes: Fix compositor viewer nodes having wrong alpha channel

Default should be black image with an alpha value of 1.
September 29, 2021, 00:13 (GMT)
Cleanup: Compositor: Migrate most output nodes to new socket builder

This migrates most nodes except for the file output node.
This node requires dynamic sockets so its implementation will be more involved.
September 28, 2021, 22:46 (GMT)
Cleanup: Simplify compositor Z Combine operation conversion
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021