Fix: UI: Assets catalog sorting in asset shelf mixes catalogs #129469

Merged
Julian Eisel merged 2 commits from JulianEisel/blender:temp-asset-catalog-sorting-fix into blender-v4.3-release 2024-10-29 11:39:40 +01:00
Member

Sorting assets by catalog was introduced for the asset shelf in
471378c666. Intention was to keep related/similar assets closer
together. But the sorting was based on the catalog name only, so
the catalog order didn't make much sense, and closer related assets
would still end up being separated by less related ones.

Instead the full catalog path should be compared, so that the hierarchy
is reflected better, and for example sibling catalogs follow each other.
This way related assets are actually placed in close proximity, as
initially intended.

Before After
Sorting assets by catalog was introduced for the asset shelf in 471378c666. Intention was to keep related/similar assets closer together. But the sorting was based on the catalog name only, so the catalog order didn't make much sense, and closer related assets would still end up being separated by less related ones. Instead the full catalog path should be compared, so that the hierarchy is reflected better, and for example sibling catalogs follow each other. This way related assets are actually placed in close proximity, as initially intended. | Before | After | | --- | --- | | ![](https://projects.blender.org/attachments/7f6f67d9-01f2-4613-8063-d363c2a76c02) | ![](https://projects.blender.org/attachments/53a275cc-25e2-4284-b4d1-7169b7c8e114) |
Julian Eisel added the
Module
User Interface
label 2024-10-28 12:45:37 +01:00
Julian Eisel added 1 commit 2024-10-28 12:45:48 +01:00
Fix: UI: Assets catalog sorting in asset shelf mixes catalogs
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
cd8cdafa73
Sorting assets by catalog was introduced for the asset shelf in
471378c666. Intention was to keep related/similar assets closer
together. But the sorting was based on the catalog name only, so
the catalog order didn't make much sense, and closer related assets
would still end up being separated by less related ones.

Instead the full catalog path should be compared, so that the hierarchy
is reflected better, and for example sibling catalogs follow each other.
This way related assets are actually placed in close proximity, as
initially intended.

(This patch also makes the asset browser sort assets by catalogs by
default, which isn't exposed in the search options UI yet. Makes it
easier to test the effects of this PR)
Author
Member

@blender-bot package

@blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR129469) when ready.
Julian Eisel requested review from Julien Kaspar 2024-10-28 15:10:34 +01:00
Contributor

Much nicer!

(This patch also makes the asset browser sort assets by catalogs by
default, which isn't exposed in the search options UI yet. Makes it
easier to test the effects of this PR)

This is only true for newly created asset browsers, if anybody is confused. Asset browsers saved in blend files are still sorting by name. I would very much like sort by catalog option in browser as well (per editor).

Much nicer! > (This patch also makes the asset browser sort assets by catalogs by default, which isn't exposed in the search options UI yet. Makes it easier to test the effects of this PR) This is only true for newly created asset browsers, if anybody is confused. Asset browsers saved in blend files are still sorting by name. I would very much like sort by catalog option in browser as well (per editor).
Author
Member

I would very much like sort by catalog option in browser as well (per editor).

@nickberckley yes I was planning to do this already for main, here's a PR (with sorting by catalog enabled by default):
UI: Add asset browser option to sort by catalogs, new default.

> I would very much like sort by catalog option in browser as well (per editor). @nickberckley yes I was planning to do this already for `main`, here's a PR (with sorting by catalog enabled by default): [UI: Add asset browser option to sort by catalogs, new default](https://projects.blender.org/blender/blender/pulls/129480).
Julien Kaspar approved these changes 2024-10-29 10:34:32 +01:00
Julien Kaspar left a comment
Member

Works great!

Works great!
Julian Eisel added 1 commit 2024-10-29 11:37:50 +01:00
Julian Eisel merged commit c4774134e9 into blender-v4.3-release 2024-10-29 11:39:40 +01:00
Julian Eisel deleted branch temp-asset-catalog-sorting-fix 2024-10-29 11:39:45 +01:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#129469
No description provided.