Blender Git Commits

Blender Git "temp-pose-flipping-fix-attempt" branch commits.

Page: 6 / 16

April 22, 2021, 19:13 (GMT)
Avoid warning when using FileSelectEntry.id_type on a non-ID file

If the file doesn't represent an ID, the value will be `'NONE'` in
Python. Otherwise a valid ID type (e.g. `'ACTION'`, `'OBJECT'`, etc.).
April 22, 2021, 14:09 (GMT)
Asset Browser: simple panel mix-in class for specific categories

Add a class `AssetBrowserSpecificCategoryPanel` that only shows if the
asset browser is showing a specific set of categories. This makes it
simple for the Pose Library panels to only show when the user has selected
the Animations category.
April 22, 2021, 09:09 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib

I had to manually add a `bContext *` parameter to a
`node_geometry_add_attribute_search_button()` call to fix a compiler
error.
April 20, 2021, 15:46 (GMT)
Asset View: Activate poses when "walk" navigating the active asset

When using the arrow keys to "walk" the active item in the asset view, call the
activate operator which applies the pose asset. This is useful for animators to
easily go through poses on the search for an appropriate one.
April 20, 2021, 14:50 (GMT)
Cleanup: Slightly correct comment from previous commit
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
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021