Revision d194b03 by Clément Foucault / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Revision d59ac43 by Jeroen Bakker / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Fix T86122: Performance Debug View Viewport Not Working The performance debug menu isn't used that often anymore as render doc also show the timings. This patch will make sure that enabling the performance debug view (21) does not crash blender. |
Revision f5ede4e by Hans Goudey / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
UI: Expose an "is first search" boolean to search button callbacks Currently when you open an RNA collection search button, like a vertex group selector, the search filter isn't applied until you start typing, in order to display every option at the start. Otherwise they wouldn't be visible, since the search filter would run for the current text. Currently this check happens in one place, but it relies on the `changed` value of `uiBut`. This is fine in the interface directory, but anywhere else it would require exposing `uiBut.changed`, which is probably too low-level to expose. The solution is adding an `is_first` argument to the search callbacks, which is nice for a few reasons: - They work at a higher level of abstraction, meaning they don't have to worry about how exactly to tell if this is the first search. - It makes it easier to do special behavior when the search menu is first opened. - Then, obviously, it makes that state accessible without including `interface_intern.h`. Needed for attribute search: T85658 Differential Revision: https://developer.blender.org/D10528 |
Revision eef2a34 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 2, 2021, 15:23 (GMT) |
Refactor UIList template for further changes and to fix some glitches Could go further than that, I think this would benefit from some C++ features, but we can do that in another pass. |
Revision 378b7eb by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 2, 2021, 10:56 (GMT) |
Merge branch 'master' into ui-asset-view-template |
Revision 3ce680f by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 1, 2021, 16:11 (GMT) |
Merge branch 'master' into ui-asset-view-template |
Revision bc9eac2 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 1, 2021, 15:45 (GMT) |
Initial AssetList API & use it to load assets for the asset view tempate Lots of hacks and temporary code here. I wanted a first working version to find possible pain points before getting into details. Basic idea is to store each asset library in an `AssetList`, with a globally accessible storage. Internally the list uses the File Browser's `FileList` which already does a fair amount of heavy lifting (threaded file & external asset reading, lazy loading of visible previews, ...). The File Browser could access the global asset-list storage as well. The asset view template uses the new asset list to load and display the assets. Current state: {F9856940} Open TODOs: https://developer.blender.org/maniphest/query/M6RWFxFSDor3/#R |
Revision 796c599 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) February 23, 2021, 17:50 (GMT) |
Add initial asset-view template, with dummy contents (palette colors) Idea is to be able to display a list of assets in a layout, by giving it some custom filtering settings (not done yet). This would be just a uiList managed by Blender, displaying previews similar to the Asset Browser. I decided to use uiLists for this because it already deals with stuff like writing its UI data to .blends (e.g. filtering and sort settings), filtering and scrolling. But I think we'll have to do a number of general improvements to them. Here I just added a new (C-only for now) "flexible grid" list display type, which uses bigger previews and behaves much better than the currend "grid" one. There's a bit of hacking going on here and things will probably change. For now I'm just interested in getting the basics done to see if the direction is good. |
|