Blender Git Commits

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

Page: 6 / 8

September 22, 2021, 13:54 (GMT)
Cleanup: fix inconsistent parameter name

Found by clang-tidy.
September 22, 2021, 13:54 (GMT)
GPencil: Dot dash modifier.

Create dot-dash effect for grease pencil strokes. User can manually edit the length, gap and styles for each segment of dashed lines.

The values in each segment can all be key-framed to make animations.

Reviewed By: Hans Goudey (HooglyBoogly), Antonio Vazquez (antoniov)

Differential Revision: https://developer.blender.org/D11876
September 22, 2021, 13:54 (GMT)
Cleanup: doxy sections, parameter syntax
September 22, 2021, 13:54 (GMT)
Geometry Nodes: Add fields version of material nodes

This commit moves the old material nodes to a "legacy" folder and adds
versions of the nodes that work with fields.

The "Select by Material" node is a field node now, so it doesn't have
a geometry output. This is an improvement because there are fewer links
to connect, and it's more easily usable in different situations.
It's also called "Material Selection", since it's more of an input
than an action now.

It's sometimes necessary to use the attribute capture node to get a
more predictable interpolation to mesh faces. This is because the
selection field input is always evaluated on the face domain, so
attribute inputs are interpolated before they are booleans, so they
cannot use the new interpolations from rB5841f8656d9580d7b9.

Differential Revision: https://developer.blender.org/D12456
September 22, 2021, 13:54 (GMT)
Cleanup: Add comment about 'make_local' callback of Brush doing bad thing.

Callbacks in IDTypeInfo should never affect other IDs if they are not
embedded.

We break this rule in some cases, at least each of those should be
clearly commented about and get some security checks to try to avoid
unexpected issues as much as possible.
September 22, 2021, 13:54 (GMT)
Fix T91421: Length modifier bake influence check.

Reviewed By: Antonio Vazquez (antoniov)

Differential Revision: https://developer.blender.org/D12496
September 22, 2021, 13:54 (GMT)
IDType: Cleanup: Remove useless `IDTYPE_FLAGS_NO_MAKELOCAL`.

This flag became a full duplicate of `IDTYPE_FLAGS_NO_LIBLINKING`, which
is a good thing (don't think we ever want to be able to link some data,
without being able to make it local...).

So we can now remove it and use `IDTYPE_FLAGS_NO_LIBLINKING` instead.
September 22, 2021, 13:54 (GMT)
Fix ID-property UI versioning skipping nested meta-strips
September 22, 2021, 13:54 (GMT)
Tests: Updated test message for Directory Not Found
September 22, 2021, 13:54 (GMT)
Fix/refactor `BKE_id_clear_newpoin` and `BKE_main_id_newptr_and_tag_clear`.

Those were not clearing embdeed IDs flags and `newid` pointers at all...
September 22, 2021, 13:54 (GMT)
ID management: Add new version of `relink_to_newid` using proper new remapping code.

Current `BKE_libblock_relink_to_newid` is using its own simplistic,
limited and not really correct version of ID remapping.

While doing a full replacement would have been ideal, this is
risky/time-constrained for Blender 3.0 release, so for now we'll have
both versions co-existing.
September 22, 2021, 13:54 (GMT)
Gizmo: add flag to hide the gizmo group during interaction

This allows a hack to be removed that temporarily overwrote
the 3D views gizmo display flag.

Also reverse change from fb27a9bb983ce74b8d8f5f871cf0706dd1e25051
that runs poll on modal gizmo groups as there is some risk
that the poll function unlinks the gizmo.
September 22, 2021, 13:54 (GMT)
Fix crash in 'drag asset' case in new append code from yesterday.

Scene and related pointer parameter can be NULL in link/append code, in
which case there is no instantiation of new objects/collections/obdata.

Link code in blendloader was already checking that, new instantiation
code in WM area from yesterday did not.

Issue introduced by rB3be5ce4aad5e.
September 22, 2021, 13:54 (GMT)
Cleanup: unused variable
September 22, 2021, 13:54 (GMT)
Fix T89241: Scale to fit overflows into a second line
September 22, 2021, 13:54 (GMT)
Fix: use type name instead of variable name

That was a typo in rBfd60f6713a9d9e6f7d706b53bf1311f2f1cd9031.
September 22, 2021, 13:54 (GMT)
LibLink: New Append code.

This commit fully refactors the way linked IDs are made local when
appended.

Previously, `BKE_library_make_local` was (ab)used for this task, but it
was missing some contextual data and doing complex processing to try to
work around this, with limited sucess. Further more, it was nearly
impossibe to extend (e.g. to get new append behaviors necessary for the
asset project).

The new code is a dedicated append step in WM linking process.

NOTE: BPY API (`libray.load()` context manager) uses its own code here,
which still relies on `BKE_library_make_local` for appending.
Unfortunately, merging those two different code paths is not trivial so
for now this API will remain unchanged.

Fix T55629: Append already linked Data is impossible.
September 22, 2021, 13:54 (GMT)
Fix: properly implement the 'only append' execption case for WorkSpaces.

Add needed extra flag and utils to IDType to mark and check an ID type
as only appendable.

Note that this is only a loose user-level enforcement currently, in any
case you need to be able to link an ID to append it currently, so for
low-level code this does not really matter.

Currently only WorkSpace and Screen ID types are marked with the new
`IDTYPE_FLAGS_ONLY_APPEND` flag.
September 22, 2021, 13:54 (GMT)
Cleanup: replace defines with functions
September 22, 2021, 13:54 (GMT)
Nodes: refactor socket declarations

This commits adds a few common flags to `SocketDeclaration`
so that they are available for all socket types (hide label, hide
value, is multi input). This allows porting over the remaining
geometry nodes to the new declaration system.

Furthermore, this commit separates the concepts of the socket
declaration and corresponding builders. The builders are used
by nodes to declare which sockets they have (e.g. `FloatBuilder`).
The ready build socket declarations can then be consumed by
other systems such as the versioning code. Both use cases
need different APIs and those will change for independent reasons,
so it makes sense to separate the classes.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021