UI: Asset Shelf (Experimental Feature) #104831

Closed
Julian Eisel wants to merge 399 commits from asset-shelf into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
3 changed files with 5 additions and 5 deletions
Showing only changes of commit 966dcb2ec0 - Show all commits

View File

@ -7,7 +7,8 @@ from bpy.types import (
class ASSETSHELF_PT_display(Panel):
bl_label = "Display Settings"
bl_space_type = 'PREFERENCES'
# Doesn't actually matter. Panel is instanced through popover only.
bl_space_type = 'VIEW_3D'
bl_region_type = 'HEADER'
def draw(self, context):

View File

@ -1165,7 +1165,8 @@ class PreferenceThemeSpacePanel:
@classmethod
def poll(cls, context):
# Special exception for expeimental asset shelf.
# Special exception for expeimental asset shelf: Hide theme settings if
# experimental option is disabled.
if cls.datapath.endswith(".asset_shelf"):
prefs = context.preferences
return prefs.experimental.use_asset_shelf

View File

@ -34,6 +34,7 @@ struct uiViewHandle;
struct uiViewItemHandle;
struct wmDrag;
void UI_but_func_set(uiBut *but, std::function<void(bContext &)> func);
void UI_but_func_pushed_state_set(uiBut *but, std::function<bool(const uiBut &)> func);
namespace blender::ui {
@ -183,9 +184,6 @@ void UI_list_filter_and_sort_items(uiList *ui_list,
const char *propname,
uiListItemGetNameFn get_name_fn = nullptr);
void UI_but_func_set(uiBut *but, std::function<void(bContext &)> func);
void UI_but_func_pushed_state_set(uiBut *but, std::function<bool(const uiBut &)> func);
/**
* Override this for all available view types.
*/