Blender V4.3
brush_asset_ops.cc File Reference
#include "BLI_fileops.h"
#include "BLI_path_utils.hh"
#include "BLI_string.h"
#include "DNA_brush_types.h"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "DNA_workspace_types.h"
#include "BKE_asset.hh"
#include "BKE_asset_edit.hh"
#include "BKE_blendfile.hh"
#include "BKE_brush.hh"
#include "BKE_context.hh"
#include "BKE_paint.hh"
#include "BKE_preferences.h"
#include "BKE_preview_image.hh"
#include "BKE_report.hh"
#include "AS_asset_catalog_path.hh"
#include "AS_asset_catalog_tree.hh"
#include "AS_asset_library.hh"
#include "AS_asset_representation.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "ED_asset_handle.hh"
#include "ED_asset_library.hh"
#include "ED_asset_list.hh"
#include "ED_asset_mark_clear.hh"
#include "ED_asset_menu_utils.hh"
#include "ED_asset_shelf.hh"
#include "UI_interface_icons.hh"
#include "UI_resources.hh"
#include "BLT_translation.hh"
#include "WM_api.hh"
#include "WM_toolsystem.hh"
#include "paint_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::sculpt_paint
 

Functions

static int blender::ed::sculpt_paint::brush_asset_activate_exec (bContext *C, wmOperator *op)
 
void blender::ed::sculpt_paint::BRUSH_OT_asset_activate (wmOperatorType *ot)
 
static std::optional< AssetLibraryReferenceblender::ed::sculpt_paint::library_to_library_ref (const asset_system::AssetLibrary &library)
 
static AssetLibraryReference blender::ed::sculpt_paint::user_library_to_library_ref (const bUserAssetLibrary &user_library)
 
static const bUserAssetLibraryblender::ed::sculpt_paint::library_ref_to_user_library (const AssetLibraryReference &library_ref)
 
static void blender::ed::sculpt_paint::refresh_asset_library (const bContext *C, const AssetLibraryReference &library_ref)
 
static void blender::ed::sculpt_paint::refresh_asset_library (const bContext *C, const bUserAssetLibrary &user_library)
 
static bool blender::ed::sculpt_paint::brush_asset_save_as_poll (bContext *C)
 
static const bUserAssetLibraryblender::ed::sculpt_paint::get_asset_library_from_prop (PointerRNA &ptr)
 
static asset_system::AssetCatalogblender::ed::sculpt_paint::asset_library_ensure_catalog (asset_system::AssetLibrary &library, const asset_system::AssetCatalogPath &path)
 
static asset_system::AssetCatalogblender::ed::sculpt_paint::asset_library_ensure_catalogs_in_path (asset_system::AssetLibrary &library, const asset_system::AssetCatalogPath &path)
 
static void blender::ed::sculpt_paint::show_catalog_in_asset_shelf (const bContext &C, const StringRefNull catalog_path)
 
static int blender::ed::sculpt_paint::brush_asset_save_as_exec (bContext *C, wmOperator *op)
 
static bool blender::ed::sculpt_paint::library_is_editable (const AssetLibraryReference &library)
 
static int blender::ed::sculpt_paint::brush_asset_save_as_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static const EnumPropertyItemblender::ed::sculpt_paint::rna_asset_library_reference_itemf (bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
 
static void blender::ed::sculpt_paint::visit_library_catalogs_catalog_for_search (const Main &bmain, const bUserAssetLibrary &user_library, const StringRef edit_text, const FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
 
static void blender::ed::sculpt_paint::visit_library_prop_catalogs_catalog_for_search_fn (const bContext *C, PointerRNA *ptr, PropertyRNA *, const char *edit_text, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
 
void blender::ed::sculpt_paint::BRUSH_OT_asset_save_as (wmOperatorType *ot)
 
static int blender::ed::sculpt_paint::brush_asset_edit_metadata_exec (bContext *C, wmOperator *op)
 
static int blender::ed::sculpt_paint::brush_asset_edit_metadata_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static void blender::ed::sculpt_paint::visit_active_library_catalogs_catalog_for_search_fn (const bContext *C, PointerRNA *, PropertyRNA *, const char *edit_text, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
 
static bool blender::ed::sculpt_paint::brush_asset_edit_metadata_poll (bContext *C)
 
void blender::ed::sculpt_paint::BRUSH_OT_asset_edit_metadata (wmOperatorType *ot)
 
static int blender::ed::sculpt_paint::brush_asset_load_preview_exec (bContext *C, wmOperator *op)
 
static int blender::ed::sculpt_paint::brush_asset_load_preview_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::sculpt_paint::BRUSH_OT_asset_load_preview (wmOperatorType *ot)
 
static bool blender::ed::sculpt_paint::brush_asset_delete_poll (bContext *C)
 
static int blender::ed::sculpt_paint::brush_asset_delete_exec (bContext *C, wmOperator *op)
 
static int blender::ed::sculpt_paint::brush_asset_delete_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
void blender::ed::sculpt_paint::BRUSH_OT_asset_delete (wmOperatorType *ot)
 
static bool blender::ed::sculpt_paint::brush_asset_save_poll (bContext *C)
 
static int blender::ed::sculpt_paint::brush_asset_save_exec (bContext *C, wmOperator *op)
 
void blender::ed::sculpt_paint::BRUSH_OT_asset_save (wmOperatorType *ot)
 
static bool blender::ed::sculpt_paint::brush_asset_revert_poll (bContext *C)
 
static int blender::ed::sculpt_paint::brush_asset_revert_exec (bContext *C, wmOperator *op)
 
void blender::ed::sculpt_paint::BRUSH_OT_asset_revert (wmOperatorType *ot)