Blender Git Commits

Blender Git "asset-browser" branch commits.

Page: 6 / 27

April 20, 2021, 14:41 (GMT)
UI Lists: Add Ctrl+F for searching, brings search field into view

The Ctrl+F is a general UI list feature. You can hover any UI list and
press Ctrl+F now to open and activate the search field. If needed the
view is scrolled to make it completely visible (with some additional
margin). Plus, the view is updated to keep the search field visible
while typing.

The latter part is also a text button feature. When you activate a text
button (that doesn't have a search menu attached, which causes further
issues), the UI code makes sure it's visible and keeps it visible while
typing.

This could go into master (after some functionality review), I'll check
on that in a bit.
April 19, 2021, 13:32 (GMT)
Fix missing refresh of Asset View UI template previews after regenerating
April 16, 2021, 13:44 (GMT)
Pose Library: free flipped Action before freeing all temp-loaded data

Free the flipped Action before calling `poselib_tempload_exit()`, to avoid
any problems from indirectly referenced ID pointers.

Thanks @campbellbarton for the patch!
April 16, 2021, 13:33 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib
April 16, 2021, 13:32 (GMT)
Revert "Assets: explicitly free the temp-loaded asset datablock"

This reverts commit 1ed2ffa8d07d4921c0ecfa836554ece178c80d6d. The master
branch has a better solution (afd8e4bce7937baf016b973c091da3d954ffaf76)
and will be merged soon.
April 16, 2021, 00:08 (GMT)
Fix crash with "Current File" library and "Reload Scripts"

When a (Python defined) UI-list type is unregistered, we have to make sure no
list still references that type. We do the same for other such UI types.
This didn't happen to be an issue before, since the list type was not accessed
until the list was drawn again (which re-assigns the type).
April 15, 2021, 21:45 (GMT)
Fix C-linkage warning on Clang

After macro expansion, there would be C++ code in code with C linkage
(`extern "C"`). Clang warned about this.
Make sure the expanded C++ code always uses C++ linkage. Will commit this to
master soon.
April 14, 2021, 13:21 (GMT)
Merge branch 'master' into asset-browser-poselib
April 13, 2021, 17:00 (GMT)
Asset View: Always show all poses, avoid double-scrollbar

The asset view so far showed up to 5 items by default. If there were
more assets to be shown than that, it the list would become scrollable.
This would cause a scrollable box inside a scrollable region, which is
not nice for interaction. We can just expand the list so all assets are
in the layout, and the user can scroll the region rather than scrolling
the list.

Also hide the "grip" button so the list can't be resized. If needed we
could allow making the list smaller still, even if that causes double
scrolling again. For now keeping it simple.
Had to add a "no grip" option for that, so I changed the signature a bit
to avoid too many boolean arguments.

And another also: Adds missing return after error check.
April 13, 2021, 17:00 (GMT)
Fix compile error when using UIList template flags in C++

C++ has strongly typed enums (which is great!), so a bitwise OR on two
enum values will result in a compiler error. Use our `ENUM_OPERATORS()`
utility to overload the bitwise operations to be valid for this strong
enum type.
April 13, 2021, 15:06 (GMT)
Action preview rendering: properly tag the object when done

Rendering a preview for an Action requires temporarily modifying the pose
of some object (otherwise there is nothing to render); after this is done,
the object needs to be tagged correctly to flush the temporary changes.
April 13, 2021, 11:59 (GMT)
Pose Library: lock the interface while flipping a pose

Flipping a pose Action temporarily changes the pose itself, which can cause
visual jitter. This is prevented by locking the interface while flipping.
April 13, 2021, 11:19 (GMT)
Cleanup: Asset Browser, move Action-specific rendering code

Move some Action-specific code required to render the preview image into
the part of the code that is already Action-specific.

No functional changes.
April 13, 2021, 11:18 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib
April 13, 2021, 10:10 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib
April 13, 2021, 10:01 (GMT)
Asset Browser: Apply a pose before rendering its preview icon

When rendering the preview icon of an Action, apply it to the pose
object first. This ensures that the "Refresh" button of a pose actually
uses that pose.

This splits some functions into two flavours, one that acts on all bones
and one that acts on the selected bones only. Normal use of the pose
library only acts on selected bones, but for the preview the entire pose
from the library is applied, regardless of selection.
April 13, 2021, 08:48 (GMT)
Cleanup: Pose library, move pose backup code into its own file

Move the pose backup & restore functionality into its own file, so that
the functions can be called from other places in Blender as well.

No functional changes.
April 12, 2021, 18:01 (GMT)
Merge branch 'master' into asset-browser-poselib
April 12, 2021, 16:11 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib
April 12, 2021, 16:02 (GMT)
Assets: explicitly free the temp-loaded asset datablock

After temp-loading an asset datablock, explicitly free it before calling
`BLO_library_temp_free()`. Without this step, normal linking would be
performed, causing temp datablocks to actually be linked into the current
blend file.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021