UI: Region polling support #105088

Merged
Julian Eisel merged 39 commits from JulianEisel/blender:temp-region-poll into main 2023-04-05 15:30:46 +02:00

39 Commits

Author SHA1 Message Date
Julian Eisel 73ec577c03 Remove unused context parameter 2023-04-05 13:17:24 +02:00
Julian Eisel 38c14def4c From review: Avoid repetitive context queries in poll functions 2023-04-05 13:11:33 +02:00
Julian Eisel 444e0f82af Merge branch 'main' into temp-region-poll 2023-04-05 12:52:34 +02:00
Julian Eisel b43b416d1f Address review comments 2023-03-20 15:32:45 +01:00
Julian Eisel b5e69fd195 Avoid region state management in sequencer refresh callback
Ensure a specific state with versioning, then the refreshing can be
simplified quite a bit.
2023-03-20 15:03:56 +01:00
Julian Eisel 63b8e31a9c Fix missing sequencer channels region when reading from old files 2023-03-20 15:03:38 +01:00
Julian Eisel e58ac364af Fix broken sequencer when used from existing workspace 2023-03-20 13:04:54 +01:00
Julian Eisel aa55199cae Merge branch 'main' into temp-region-poll 2023-03-20 12:49:56 +01:00
Julian Eisel ede016b5b4 Merge branch 'main' into temp-region-poll 2023-02-24 15:23:32 +01:00
Julian Eisel ca7b094bcc Use poll functions for Preferences execution region
Previously we'd hide the "execution" region (containing the Save
Preferences button) when the header is visible, which would contain the
button instead. It was possible to unhide it, which made it behave
glitchy. Now it reliably "removes" is and brings it back when needed
(it's not really removed, only from what the user can tell).
2023-02-23 19:26:31 +01:00
Julian Eisel 2bbe699bc1 Use region polling in clip editor
Makes the region management code quite a bit simpler for the clip
editor. A small trade-off is more versioning code.
2023-02-23 19:18:52 +01:00
Julian Eisel 54af101e6e Remove event handlers for region with failing poll 2023-02-23 16:09:02 +01:00
Julian Eisel 3fde89c2a8 Add versioning for file browsers in existing workspaces 2023-02-23 15:49:58 +01:00
Julian Eisel 96a4f5b8b1 Fix properties region hiding when toggling file and asset browser 2023-02-23 15:06:08 +01:00
Julian Eisel fa817e0c71 Remove asset-shelf region code
This is out of scope of this branch, there's the dedicated `asset-shelf`
branch.
2023-02-22 18:29:06 +01:00
Julian Eisel 3e58cd6fcc Merge branch 'main' into temp-region-poll 2023-02-22 18:20:56 +01:00
Julian Eisel 34d27ccea5 Merge branch 'main' into temp-region-poll 2023-02-22 16:00:21 +01:00
Julian Eisel 5fc5d742a7 Temp 2023-01-17 12:48:03 +01:00
Julian Eisel 9b00338ed4 Merge branch 'master' into asset-shelf 2023-01-16 17:22:56 +01:00
Julian Eisel d6df32a6f8 Add basic (empty) asset shelf region 2022-12-07 20:00:27 +01:00
Julian Eisel 3cd93ace24 Simple progress reporting for all library
Progress bar display the file reading (and other operations) is actually
broken in master for a while, so this won't actually be reported. Still
calculate it for once it's fixed.
2022-12-07 18:29:38 +01:00
Julian Eisel e8575bfd4a General cleanup (comments, remove outdated TODO marks, naming) 2022-12-07 18:20:05 +01:00
Julian Eisel 747a9ea263 Make catalogs from "All" library read-only
Loading the asset library will create a read-only catalog service. The
read-only nature is not dealt with much in the asset catalog code, the
using code (e.g. the UI) is responsible for respecting it.
2022-12-06 17:02:05 +01:00
Julian Eisel af0c1d72a2 Merge branch 'master' into temp-asset-library-all 2022-12-06 11:57:01 +01:00
Julian Eisel 11abc1be39 Use "All" library for node search menu building
Code was manually building the search menu items from all asset
libraries, this is simpler now.
2022-12-02 20:29:12 +01:00
Julian Eisel ecc25bc62e Use "All" library for node add menu building
Code was manually building the add menu from all asset libraries, this
should be simpler now.
2022-12-02 20:23:54 +01:00
Julian Eisel a07a2e2369 Avoid redundant loading of catalogs and "All" library processing 2022-12-02 19:37:43 +01:00
Julian Eisel af5d225653 Load catalogs for "All" asset library
Merges the catalog definitions from all asset libraries in to the
storage of the "All" one, builds the catalog tree and refreshes data as
needed. This doesn't allow writing changes back to the catalog
definition files, so the UI probably shouldn't allow edits.
2022-12-02 19:20:37 +01:00
Julian Eisel 1dc8305213 Merge branch 'master' into temp-asset-library-all 2022-12-02 19:18:18 +01:00
Julian Eisel fb2303fb73 Avoid ugly nested library storage
We actually don't have to do this, since we can just iterate over all
loaded libraries after calling the loading for the "All" asset library.
2022-12-02 16:58:47 +01:00
Julian Eisel 5186c9c9c6 Merge remote-tracking branch 'origin/master' into temp-asset-library-all 2022-12-02 16:20:28 +01:00
Julian Eisel 126136baab Fix missing asset previews and broken drag & drop in "All" library
Together with the changes made in master, all this does is making sure
the assets are loaded and removed using the correct asset library nested
within the "All" library. Now full paths for the assets can be built
correctly from the asset identifier, which fixes preview loading and
drag & drop.
2022-11-30 20:19:30 +01:00
Julian Eisel 3f1e4f6f56 Merge branch 'master' into temp-asset-library-all 2022-11-30 20:02:29 +01:00
Julian Eisel 03bd437170 Merge branch 'master' into temp-asset-library-all 2022-11-30 19:49:29 +01:00
Julian Eisel 2c2515d465 Merge branch 'master' into temp-asset-library-all 2022-11-29 11:14:41 +01:00
Julian Eisel d51212c4f0 Integrate "All" library better with the asset system
Now it actually loads data from all asset libraries when this is
selected. The asset representations still need to be loaded by the file
browser backend, this won't change for now.

This adds the concept of nested asset libraries, which I'd prefer to
keep as implementation detail and not expose in the API. But for now
it's needed (for the asset representation loading by the file browser
backend).
2022-11-28 19:37:00 +01:00
Julian Eisel 86b9b1df22 Merge branch 'master' into temp-asset-library-all 2022-11-28 15:44:59 +01:00
Julian Eisel ca8fa2f7d6 Merge branch 'master' into temp-asset-library-all 2022-11-24 16:25:39 +01:00
Julian Eisel 33bcc4f430 Initial "All" asset library loading support
An "All" asset library can be selected in the Asset Browser and asset
view templates now, and that will load all assets from all asset
libraries. Preview loading, drag & drop and asset catalogs don't work
yet.
2022-11-22 17:59:29 +01:00