Blender Git Loki

Blender Git "ui-asset-view-template" branch commits.

March 31, 2021, 20:53 (GMT)
Merge branch 'master' into ui-asset-view-template
March 25, 2021, 18:10 (GMT)
Cleanup: Improve naming of new temporary ID consumer functions
March 25, 2021, 18:03 (GMT)
Asset Browser: correct the declared context keys

The file browser context (when in asset browser mode) was declaring the
wrong context keys, making it impossible to use `context.copy()` in Python.
March 24, 2021, 13:35 (GMT)
Merge branch 'master' into ui-asset-view-template
March 24, 2021, 12:54 (GMT)
Support passing operator to invoke on activating or dragging an item

An annoyance is that the operator names have to be passed to the template which
makes the already long argument list even longer.
Thought about a couple of ways to do this, unfortunately this is the only
decent way to do this that I see. There's also no way to pass operator options
currently.

Getting the handling to work correctly took some effort, and the code is not
exactly nice.

Note that even though we activate the item when calling the custom drag
operator (helps indicating the pose being blended for example), we only call
the drag operator then, not the activate one. They are never executed both.

Also note that this won't compile right now, I'll have to commit some changes
to master first.
March 24, 2021, 12:34 (GMT)
Add utilities to temporarily append asset IDs

Uses the new `BLO_library_temp_xxx` functions, but deals with all the asset
specific file path building. This is a reasonable utility for the asset system
to have, it will probably be needed by more asset types than IDs.
March 24, 2021, 12:25 (GMT)
Require identifier for asset view template usages

Needed if we want to support multiple different asset views in future.
March 24, 2021, 12:25 (GMT)
Allow getting asset library and active asset handle via context

`CTX_wm_asset_library()` returns the active asset library from the workspace,
or the the Asset Browser one while inside that. The active asset handle is set
by the Asset Browser and the asset view UI template so that operators executed
via the template can access it.
March 24, 2021, 11:22 (GMT)
Merge branch 'master' into ui-asset-view-template
March 21, 2021, 15:46 (GMT)
Fix crash when showing empty shape-keys list
March 21, 2021, 15:11 (GMT)
Cleanup: add const.
March 21, 2021, 15:11 (GMT)
Python API: Expose CurveProfile Reset View function

Allow python access to the `reset_view` functionality which before
was only available through the menu. This was suggested for
consistency after D10561.

Differential Revision: https://developer.blender.org/D10595
March 21, 2021, 15:11 (GMT)
Geometry Nodes: Move cone primtive to rest on its base by default

This is generally what people expect when generating a cone. Note that
this translation currently happens after the rotation, but since the rotation
will likely be removed in the future, that won't be a problem for long.
March 21, 2021, 15:11 (GMT)
Cleanup: Replace std::vector with blender::Vector.
March 21, 2021, 15:11 (GMT)
Geometry Nodes: Make cone primitive 2m tall by default

This gives the cone mesh primitive more pleasing proportions by default.
March 21, 2021, 15:11 (GMT)
Cleanup: remove unused function
March 21, 2021, 15:11 (GMT)
Fix T86710: Crash When Adding Node Group.

When adding a node group there can be no inputs in the input map that
was triggering an assert.
March 21, 2021, 15:11 (GMT)
BLI: Add location, rotation, scale constructor to float4x4

This is simply a convenience when using this type. More similar
constructors can be added in the future when they are useful.

Differential Revision: https://developer.blender.org/D10714
March 21, 2021, 15:11 (GMT)
LibOverride: fix code trying to auto-resync linked overrides.

This is not only potentially extremely expensive, it is also fairly
futile, and code is not designed to handle it currently anyway (could
easily end up in inifinite loops and other crashes).
March 21, 2021, 15:11 (GMT)
Geometry Nodes: Implicit interpolations to and from the edge domain

This patch adds the remaining 6 interpolations for mesh domains.
The new interpolations are:
- Corner / point / polygon to edge
- Edge to corner / point / polygon

After this it is possible to adapt an attribute to and from every
mesh domain. This is simple to test with the "Attribute Convert" node.

Though, as a note for the future, there are still some improvements
possible to the interpolations, like lazily calculating values for the
interpolations where it's possible, and slightly improving the
algorithms used for some interpolations, like using corner angles
for polygon to point.

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