58 U.runtime.is_dirty =
true;
65 ot->
name =
"Reset to Default Theme";
66 ot->
idname =
"PREFERENCES_OT_reset_default_theme";
86 U.runtime.is_dirty =
true;
92 ot->
name =
"Add Auto-Execution Path";
93 ot->
idname =
"PREFERENCES_OT_autoexec_path_add";
113 U.runtime.is_dirty =
true;
120 ot->
name =
"Remove Auto-Execution Path";
121 ot->
idname =
"PREFERENCES_OT_autoexec_path_remove";
122 ot->
description =
"Remove path to exclude from auto-execution";
140 U.runtime.is_dirty =
true;
146 ot->
name =
"Add Asset Library";
147 ot->
idname =
"PREFERENCES_OT_asset_library_add";
149 "Add a path to a .blend file to be used by the Asset Browser as source of assets";
168 U.runtime.is_dirty =
true;
177 ot->
name =
"Remove Asset Library";
178 ot->
idname =
"PREFERENCES_OT_asset_library_remove";
180 "Remove a path to a .blend file, so the Asset Browser will not attempt to show it anymore";
struct Main * CTX_data_main(const bContext *C)
struct bUserAssetLibrary * BKE_preferences_asset_library_add(struct UserDef *userdef, const char *name, const char *path) ATTR_NONNULL(1)
void BKE_preferences_asset_library_remove(struct UserDef *userdef, struct bUserAssetLibrary *library) ATTR_NONNULL()
void BLI_freelinkN(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Read Guarded memory(de)allocation.
void UI_style_init_default(void)
void UI_theme_init_default(void)
#define ND_SPACE_ASSET_PARAMS
static FT_Library library
void *(* MEM_callocN)(size_t len, const char *str)
int RNA_int_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
static int preferences_reset_default_theme_exec(bContext *C, wmOperator *UNUSED(op))
static void PREFERENCES_OT_reset_default_theme(wmOperatorType *ot)
static int preferences_autoexec_remove_exec(bContext *UNUSED(C), wmOperator *op)
static int preferences_asset_library_remove_exec(bContext *UNUSED(C), wmOperator *op)
void ED_operatortypes_userpref(void)
static int preferences_asset_library_add_exec(bContext *UNUSED(C), wmOperator *UNUSED(op))
static void PREFERENCES_OT_asset_library_remove(wmOperatorType *ot)
static void PREFERENCES_OT_autoexec_path_remove(wmOperatorType *ot)
static void PREFERENCES_OT_autoexec_path_add(wmOperatorType *ot)
static void PREFERENCES_OT_asset_library_add(wmOperatorType *ot)
static int preferences_autoexec_add_exec(bContext *UNUSED(C), wmOperator *UNUSED(op))
void WM_main_add_notifier(unsigned int type, void *reference)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void WM_reinit_gizmomap_all(Main *bmain)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))