mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #157236: Python error on opening the navigation pie menu on the asset browser
Vertical list is excluded for asset browser in `rna_FileSelectParams_display_type_itemf`. Add a check in pie menu drawing to silent the error caused by vertical enumitem. Pull Request: https://projects.blender.org/blender/blender/pulls/157262
This commit is contained in:
parent
f3809b8b7f
commit
aa1d261cf9
1 changed files with 2 additions and 2 deletions
|
|
@ -584,8 +584,8 @@ class FILEBROWSER_MT_view_pie(Menu):
|
|||
|
||||
pie = layout.menu_pie()
|
||||
view = context.space_data
|
||||
|
||||
pie.prop_enum(view.params, "display_type", value='LIST_VERTICAL')
|
||||
if view.browse_mode == 'FILES':
|
||||
pie.prop_enum(view.params, "display_type", value='LIST_VERTICAL')
|
||||
pie.prop_enum(view.params, "display_type", value='LIST_HORIZONTAL')
|
||||
pie.prop_enum(view.params, "display_type", value='THUMBNAIL')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue