Blender Git Commits

Blender Git "temp-ui-tweaks" branch commits.

Page: 2 / 8

September 22, 2021, 13:54 (GMT)
Geometry Nodes: Simplify using OutputAttribute in a vector

Store the optional temporary span storage as a unique_ptr and move
it in the move constructor, to avoid the need to add a special move
constructor that clears the "show_warning" fields from it. Maybe this
is very slightly slower, but we'll need this class less often in the future
September 22, 2021, 13:54 (GMT)
Compositor: Fix Alpha Over node ignoring emissive colors

It was an issue on Full Frame mode only.
September 22, 2021, 13:54 (GMT)
UI: expose "Lasso Select" & "Extrude to Cursor" in menus

- Show "Lasso Select" in menus (along with Box & Circle select)
- Show "Extrude to Cursor" (along with other extrude actions).
- Rename operators that add/extrude on Ctrl-Click
since their names were inconsistent.

This is mainly for discoverability.
September 22, 2021, 13:54 (GMT)

There will be other settings that lock other aspects of the
UI layout (e.g., resizing of editors). So better to name
this setting what it actually handles (the corners).


Differential Revision: D12516
September 22, 2021, 13:54 (GMT)
Hide empty keymap warnings when running a template
September 22, 2021, 13:54 (GMT)
Cleanup: Add built-in check for an attribute ID
September 22, 2021, 13:54 (GMT)
GPencil: Curvature support for length modifier.
September 22, 2021, 13:54 (GMT)
Cleanup: Remove unnecessary manual of move constructor

Turns out this isn't actually necessary.
September 22, 2021, 13:54 (GMT)
App Settings: Edge Resize

This prevents both editor resize as well as regions (e.g., the toolbar).

Note: This option is not visible in the UI.

Differential Revision: D12516
September 22, 2021, 13:54 (GMT)
Geometry Nodes: Add a toggle to use attributes as input values

This adds a toggle to node group inputs exposed in the modifier to use
an attribute instead of a single value. When the toggle is pressed, the
button switches to a text button to choose an attribute name. Attribute
search isn't implemented here yet.

One confusing thing is that some values can't be driven by attributes
at all, like the size of a primitive node. In that case, we should have
a node warning, but that will be separate since it's more general.
We can also have an option to turn off this toggle in node group
input settings.

The two new properties for each input are stored with the same name
as the value, but with `"_use_attribute"` and `"_attribute_name"``
suffixes. The properties are not added for socket types that don't
support attribute input, like object sockets.

Differential Revision:
September 22, 2021, 13:54 (GMT)
Fix T85564: FCurve modifier zero influence on restrict range borders

When using FModifier `Restrict Frame Range`, the resulting influence was
zero being exactly on `Start` / `End` range borders (so borders were
This made it impossible to chain FModifers together (forcing the user to
specify values slightly below the desired border in following
This is now corrected to be **inclusive** on Start / End range borders.


In the case of touching open borders (so [frame A frame B] followed by
[frame B frame C]) both modifiers are evaluated (in stack order).
If the later modifier has full influence (and is not additive) this simply
means the result is the same as the later modifier's value.
If influences below 1 are used (or modifiers are additive) both modifier's
values are interpolated/added accordingly.

technical notes:
- this was caused by the introduction of FModifier Influence/BlendIn-Out
in rB185663b52b61.
- for comparison, see other occurrences of
- the following conditions in `eval_fmodifier_influence` for blend in/
out have been changed accordingly.

Maniphest Tasks: T85564

Differential Revision:
September 22, 2021, 13:54 (GMT)
Rename show_layout_ui > show_corner_split and remove from UI

This breaks API compatibility. However we are now grouping this setting
in the proper section (preferences.apps), so scripts had to update anyways.

So they may as well do it for the final name.

The reason to remove from the UI is that this is intended for app setup,
and as such it should not be exposed to final users until we have apps
better presented (for 3.1 hopefully).

Differential Revision: D12516
September 22, 2021, 13:54 (GMT)
UI: wait for input for operators that depend on cursor location

Support waiting for input so operators that depend on the
cursor location are usable from menus / buttons.

Use an operator type flag which the user interface code checks for,
waiting for input when run from a menu item.

This patch only supports this feature, there are no functional changes.

The motivation for this change is discoverability since some actions
were either hidden or broken when accessed from menus
(where the behavior of the operator depended on the menu location).

In general, waiting for input is *not* an efficient way to access tools,
however there are over 50 operators with a "wait_for_input" property
so this isn't introducing a new kind of interaction,
rather exposing this in a way that does not need to be hard-coded into
each operator, or having modal callbacks added for the sole purpose
of waiting for input.

Besides requiring boiler plate code using a "wait_for_input" property
has the added down-side of preventing key shortcuts from showing.
Only the menu items will enable the property,
causing them not to match key-map items.

Reviewed By: Severin

Ref D12255
September 22, 2021, 13:54 (GMT)
Fix: Spline length calculation fails with no evaluated points

The case that checked whether there were evaluated edges was incorrect,
since two points are needed for an edge. Then also avoid running the
accumulation for an empty span.
September 22, 2021, 13:54 (GMT)
Cleanup: fix memory leak
September 22, 2021, 13:54 (GMT)
Fix (harmless) mistake in recent new Append code.

This code path is not yet used so no harm, but that was a fairly nasty
potential crash-generator.
September 22, 2021, 13:54 (GMT)
Revert "GPencil: Curvature support for length modifier."

Reason for revert: accidental push of a intermediate change locally.

This reverts commit 25e548c96b3d8c1698fd4385b4dc395665b5a7f6.
September 22, 2021, 13:54 (GMT)
App Settings: Regions Visbility Toggle

The toggle that allow users to "show" the region (header, toolbar, ...)
when it is collapsed can now be configured for the apps.

Note: This option is not visibile in the UI.

Differential Revision: D12516
September 22, 2021, 13:54 (GMT)
Cleanup: typo
September 22, 2021, 13:54 (GMT)
Fix: Nodes modifier ignores input value with new property missing

An issue with the previous commit-- the default value of the type was
used instead of the property value when the "use_attribute" property
was missing.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021