Blender V5.0
asset_ops.cc File Reference
#include "AS_asset_library.hh"
#include "AS_asset_representation.hh"
#include "BKE_asset_edit.hh"
#include "BKE_blendfile.hh"
#include "BKE_bpath.hh"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_icons.h"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_preferences.h"
#include "BKE_preview_image.hh"
#include "BKE_report.hh"
#include "BKE_screen.hh"
#include "BLI_fnmatch.h"
#include "BLI_path_utils.hh"
#include "BLI_rect.h"
#include "BLI_set.hh"
#include "BLI_string.h"
#include "ED_asset.hh"
#include "ED_screen.hh"
#include "ED_fileselect.hh"
#include "ED_render.hh"
#include "ED_util.hh"
#include "ED_view3d_offscreen.hh"
#include "BLT_translation.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_prototypes.hh"
#include "IMB_imbuf.hh"
#include "IMB_thumbs.hh"
#include "WM_api.hh"
#include "DNA_space_types.h"
#include "GPU_immediate.hh"
#include "UI_interface_c.hh"
#include "UI_resources.hh"

Go to the source code of this file.

Classes

struct  blender::ed::asset::IDVecStats
class  blender::ed::asset::AssetMarkHelper
class  blender::ed::asset::AssetClearHelper
struct  blender::ed::asset::FileCheckCallbackInfo
struct  blender::ed::asset::ScreenshotOperatorData

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::asset

Functions

static IDVecStats blender::ed::asset::asset_operation_get_id_vec_stats_from_ids (const Span< PointerRNA > id_pointers)
static const char * blender::ed::asset::asset_operation_unsupported_type_msg (const bool is_single)
static wmOperatorStatus blender::ed::asset::asset_mark_exec (const bContext *C, const wmOperator *op, const Span< PointerRNA > ids)
static bool blender::ed::asset::asset_mark_poll (bContext *C, const Span< PointerRNA > ids)
static void blender::ed::asset::ASSET_OT_mark (wmOperatorType *ot)
static void blender::ed::asset::ASSET_OT_mark_single (wmOperatorType *ot)
static wmOperatorStatus blender::ed::asset::asset_clear_exec (const bContext *C, const wmOperator *op, const Span< PointerRNA > ids)
static bool blender::ed::asset::asset_clear_poll (bContext *C, const Span< PointerRNA > ids)
static std::string blender::ed::asset::asset_clear_get_description (bContext *, wmOperatorType *, PointerRNA *ptr)
static void blender::ed::asset::ASSET_OT_clear (wmOperatorType *ot)
static void blender::ed::asset::ASSET_OT_clear_single (wmOperatorType *ot)
static bool blender::ed::asset::asset_library_refresh_poll (bContext *C)
static wmOperatorStatus blender::ed::asset::asset_library_refresh_exec (bContext *C, wmOperator *)
static void blender::ed::asset::ASSET_OT_library_refresh (wmOperatorType *ot)
static bool blender::ed::asset::asset_catalog_operator_poll (bContext *C)
static wmOperatorStatus blender::ed::asset::asset_catalog_new_exec (bContext *C, wmOperator *op)
static void blender::ed::asset::ASSET_OT_catalog_new (wmOperatorType *ot)
static wmOperatorStatus blender::ed::asset::asset_catalog_delete_exec (bContext *C, wmOperator *op)
static void blender::ed::asset::ASSET_OT_catalog_delete (wmOperatorType *ot)
static asset_system::AssetCatalogServiceblender::ed::asset::get_catalog_service (bContext *C)
static wmOperatorStatus blender::ed::asset::asset_catalog_undo_exec (bContext *C, wmOperator *)
static bool blender::ed::asset::asset_catalog_undo_poll (bContext *C)
static void blender::ed::asset::ASSET_OT_catalog_undo (wmOperatorType *ot)
static wmOperatorStatus blender::ed::asset::asset_catalog_redo_exec (bContext *C, wmOperator *)
static bool blender::ed::asset::asset_catalog_redo_poll (bContext *C)
static void blender::ed::asset::ASSET_OT_catalog_redo (wmOperatorType *ot)
static wmOperatorStatus blender::ed::asset::asset_catalog_undo_push_exec (bContext *C, wmOperator *)
static bool blender::ed::asset::asset_catalog_undo_push_poll (bContext *C)
static void blender::ed::asset::ASSET_OT_catalog_undo_push (wmOperatorType *ot)
static bool blender::ed::asset::asset_catalogs_save_poll (bContext *C)
static wmOperatorStatus blender::ed::asset::asset_catalogs_save_exec (bContext *C, wmOperator *)
static void blender::ed::asset::ASSET_OT_catalogs_save (wmOperatorType *ot)
static bool blender::ed::asset::could_be_asset_bundle (const Main *bmain)
static const bUserAssetLibraryblender::ed::asset::selected_asset_library (wmOperator *op)
static bool blender::ed::asset::is_contained_in_selected_asset_library (wmOperator *op, const char *filepath)
static bool blender::ed::asset::set_filepath_for_asset_lib (const Main *bmain, wmOperator *op)
static bool blender::ed::asset::has_external_files (Main *bmain, ReportList *reports)
static bool blender::ed::asset::asset_bundle_install_poll (bContext *C)
static wmOperatorStatus blender::ed::asset::asset_bundle_install_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus blender::ed::asset::asset_bundle_install_exec (bContext *C, wmOperator *op)
static const EnumPropertyItemblender::ed::asset::rna_asset_library_reference_itemf (bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
static void blender::ed::asset::ASSET_OT_bundle_install (wmOperatorType *ot)
static bool blender::ed::asset::external_file_check_callback (BPathForeachPathData *bpath_data, char *, size_t, const char *path_src)
static void blender::ed::asset::sort_points (int2 &p1, int2 &p2)
static int2 blender::ed::asset::clamp_point_to_window (const int2 &point, const wmWindow *window)
static void blender::ed::asset::square_points_clamp_to_window (const int2 &p1, int2 &p2, const wmWindow *window)
static void blender::ed::asset::generate_previewimg_from_buffer (ID *id, const ImBuf *image_buffer)
static ImBufblender::ed::asset::take_screenshot_crop (bContext *C, const rcti &crop_rect)
static wmOperatorStatus blender::ed::asset::screenshot_preview_exec (bContext *C, wmOperator *op)
static void blender::ed::asset::screenshot_preview_draw (const wmWindow *window, void *operator_data)
static void blender::ed::asset::screenshot_preview_exit (bContext *C, wmOperator *op)
static void blender::ed::asset::screenshot_area_transfer_to_rna (wmOperator *op, ScreenshotOperatorData *data)
static wmOperatorStatus blender::ed::asset::screenshot_preview_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::ed::asset::screenshot_preview_invoke (bContext *C, wmOperator *op, const wmEvent *)
static bool blender::ed::asset::screenshot_preview_poll (bContext *C)
static void blender::ed::asset::ASSET_OT_screenshot_preview (wmOperatorType *ot)
void blender::ed::asset::operatortypes_asset ()

Variables

constexpr int blender::ed::asset::DRAG_THRESHOLD = 4