The removal of "Recursion" in asset browser removes functionality. #90451

Closed
opened 2021-08-05 10:09:26 +02:00 by Alaska · 9 comments
Member

System Information
Operating system: NA
Graphics card: NA

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-05 06:54, hash: f5acfd9c04
Worked: Prior to d8bf332f86 & ceb049133c

Description of error:
I'm not sure how a report like this is supposed to be handled. It's not a bug. But is a regression.

Prior to commit d8bf332f86 and ceb049133c there was an option in the top of the Asset Browser to change the level of recursion when the asset browser searches for files. Here's one of the places you could find it prior to the commits:

At the top of the Asset Browser select View -> Recursion and you can now select the level of Recursion.

This setting has since been removed which comes at a loss of functionality as the Assest Browser can no longer be configured to find assets inside folders. Technically this is fine, but I personally find this annoying as I sorted my assets into folders inside my asset browser directory, and now I can not access my assets in the asset browser without modifying the layout of my directory.

Here's an example of a directory tree like mine:

Asset Browser Directory (Pointed at via Blender User Preferences)
├── Materials from Website X (Folder)
│   ├── Brick 001.blend
│   └── Ground 001.blend
└── Materials from Website Y (Folder)
    ├── Tiles 001.html
    └── Woodfloor 001.html

I have created a patch that returns the functionality, but I'm not sure whether this is the route to go, or to instead allow the asset browser to recursively look inside "infinite" folders by default.

diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index 9f70d26c71b..3827d69b5bf 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -592,6 +592,7 @@ class ASSETBROWSER_PT_display(asset_utils.AssetBrowserPanel, Panel):
             col = layout.column(heading="Columns", align=True)
             col.prop(params, "show_details_size", text="Size")
             col.prop(params, "show_details_datetime", text="Date")
+        layout.prop(params, "recursion_level", text="Recursions")
 
 
 class AssetBrowserMenu:
@@ -627,6 +628,7 @@ class ASSETBROWSER_MT_view(AssetBrowserMenu, Menu):
         layout.separator()
 
         layout.prop_menu_enum(params, "display_size")
+        layout.prop_menu_enum(params, "recursion_level")
 
         layout.separator()

**System Information** Operating system: NA Graphics card: NA **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-05 06:54, hash: `f5acfd9c04` Worked: Prior to d8bf332f86 & ceb049133c **Description of error:** I'm not sure how a report like this is supposed to be handled. It's not a bug. But is a regression. Prior to commit `d8bf332f86` and `ceb049133c` there was an option in the top of the `Asset Browser` to change the level of recursion when the asset browser searches for files. Here's one of the places you could find it prior to the commits: > At the top of the `Asset Browser` select `View -> Recursion` and you can now select the level of Recursion. This setting has since been removed which comes at a loss of functionality as the Assest Browser can no longer be configured to find assets inside folders. Technically this is fine, but I personally find this annoying as I sorted my assets into folders inside my asset browser directory, and now I can not access my assets in the asset browser without modifying the layout of my directory. Here's an example of a directory tree like mine: ``` Asset Browser Directory (Pointed at via Blender User Preferences) ├── Materials from Website X (Folder) │ ├── Brick 001.blend │ └── Ground 001.blend └── Materials from Website Y (Folder) ├── Tiles 001.html └── Woodfloor 001.html ``` I have created a patch that returns the functionality, but I'm not sure whether this is the route to go, or to instead allow the asset browser to recursively look inside "infinite" folders by default. ``` diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py index 9f70d26c71b..3827d69b5bf 100644 --- a/release/scripts/startup/bl_ui/space_filebrowser.py +++ b/release/scripts/startup/bl_ui/space_filebrowser.py @@ -592,6 +592,7 @@ class ASSETBROWSER_PT_display(asset_utils.AssetBrowserPanel, Panel): col = layout.column(heading="Columns", align=True) col.prop(params, "show_details_size", text="Size") col.prop(params, "show_details_datetime", text="Date") + layout.prop(params, "recursion_level", text="Recursions") class AssetBrowserMenu: @@ -627,6 +628,7 @@ class ASSETBROWSER_MT_view(AssetBrowserMenu, Menu): layout.separator() layout.prop_menu_enum(params, "display_size") + layout.prop_menu_enum(params, "recursion_level") layout.separator() ```
Author
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
Author
Member

Added subscribers: @JulianEisel, @Jeroen-Bakker

Added subscribers: @JulianEisel, @Jeroen-Bakker
Author
Member

CC @JulianEisel and @Jeroen-Bakker as you two seem to work on the asset browser the most. And this is kind of design proposal?

CC @JulianEisel and @Jeroen-Bakker as you two seem to work on the asset browser the most. And this is kind of design proposal?
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Seems like the plan is on the TODO, see #89987 (Recurse Into Nested Folders of an Asset Library), will merge these reports (and mention we already had a recursion option there).

Seems like the plan is on the TODO, see #89987 (Recurse Into Nested Folders of an Asset Library), will merge these reports (and mention we already had a recursion option there).
Member

Closed as duplicate of #89987

Closed as duplicate of #89987
Author
Member

Thanks @lichtwerk

Thanks @lichtwerk
Member

The recursion option there was another leftover from the File Browser. Plan is to let asset libraries be fully recursive by default, without having to specify how many levels.
But that is what #89987 (Recurse Into Nested Folders of an Asset Library) is about, which I'll probably work on today.

The recursion option there was another leftover from the File Browser. Plan is to let asset libraries be fully recursive by default, without having to specify how many levels. But that is what #89987 (Recurse Into Nested Folders of an Asset Library) is about, which I'll probably work on today.
Author
Member

In #90451#1202152, @JulianEisel wrote:
The recursion option there was another leftover from the File Browser. Plan is to let asset libraries be fully recursive by default, without having to specify how many levels.
But that is what #89987 (Recurse Into Nested Folders of an Asset Library) is about, which I'll probably work on today.

Thanks for clarifying

> In #90451#1202152, @JulianEisel wrote: > The recursion option there was another leftover from the File Browser. Plan is to let asset libraries be fully recursive by default, without having to specify how many levels. > But that is what #89987 (Recurse Into Nested Folders of an Asset Library) is about, which I'll probably work on today. Thanks for clarifying
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
3 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#90451
No description provided.