|
Blender
V2.93
|
#include "BKE_context.h"#include "BKE_report.h"#include "BLI_vector.hh"#include "ED_asset.h"#include "RNA_access.h"#include "WM_api.h"#include "WM_types.h"Go to the source code of this file.
Classes | |
| class | AssetMarkHelper |
| class | AssetClearHelper |
Typedefs | |
| using | PointerRNAVec = blender::Vector< PointerRNA > |
Functions | |
| static bool | asset_operation_poll (bContext *) |
| static PointerRNAVec | asset_operation_get_ids_from_context (const bContext *C) |
| static int | asset_mark_exec (bContext *C, wmOperator *op) |
| static void | ASSET_OT_mark (wmOperatorType *ot) |
| static int | asset_clear_exec (bContext *C, wmOperator *op) |
| static void | ASSET_OT_clear (wmOperatorType *ot) |
| void | ED_operatortypes_asset (void) |
| using PointerRNAVec = blender::Vector<PointerRNA> |
Definition at line 35 of file asset_ops.cc.
|
static |
Definition at line 221 of file asset_ops.cc.
References asset_operation_get_ids_from_context(), C, NA_EDITED, NA_REMOVED, NC_ASSET, NC_ID, OPERATOR_CANCELLED, OPERATOR_FINISHED, AssetClearHelper::reportResults(), wmOperator::reports, AssetClearHelper::wasSuccessful(), and WM_main_add_notifier().
Referenced by ASSET_OT_clear().
|
static |
Definition at line 134 of file asset_ops.cc.
References asset_operation_get_ids_from_context(), C, NA_ADDED, NA_EDITED, NC_ASSET, NC_ID, OPERATOR_CANCELLED, OPERATOR_FINISHED, AssetMarkHelper::reportResults(), wmOperator::reports, AssetMarkHelper::wasSuccessful(), and WM_main_add_notifier().
Referenced by ASSET_OT_mark().
|
static |
Return the IDs to operate on as PointerRNA vector. Either a single one ("id" context member) or multiple ones ("selected_ids" context member).
Definition at line 46 of file asset_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_freelistN(), C, CTX_data_pointer_get_type(), CTX_data_selected_ids(), PointerRNA::data, LISTBASE_FOREACH, and RNA_ID.
Referenced by asset_clear_exec(), and asset_mark_exec().
|
static |
Definition at line 37 of file asset_ops.cc.
Referenced by ASSET_OT_clear(), and ASSET_OT_mark().
|
static |
Definition at line 239 of file asset_ops.cc.
References asset_clear_exec(), asset_operation_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_asset().
|
static |
Definition at line 152 of file asset_ops.cc.
References asset_mark_exec(), asset_operation_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_asset().
| void ED_operatortypes_asset | ( | void | ) |
Definition at line 255 of file asset_ops.cc.
References ASSET_OT_clear(), ASSET_OT_mark(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().