Blender  V2.93
Classes | Typedefs | Functions
asset_ops.cc File Reference
#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)
 

Typedef Documentation

◆ PointerRNAVec

Definition at line 35 of file asset_ops.cc.

Function Documentation

◆ asset_clear_exec()

static int asset_clear_exec ( bContext C,
wmOperator op 
)
static

◆ asset_mark_exec()

static int asset_mark_exec ( bContext C,
wmOperator op 
)
static

◆ asset_operation_get_ids_from_context()

static PointerRNAVec asset_operation_get_ids_from_context ( const bContext C)
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().

◆ asset_operation_poll()

static bool asset_operation_poll ( bContext )
static

Definition at line 37 of file asset_ops.cc.

Referenced by ASSET_OT_clear(), and ASSET_OT_mark().

◆ ASSET_OT_clear()

static void ASSET_OT_clear ( wmOperatorType ot)
static

◆ ASSET_OT_mark()

static void ASSET_OT_mark ( wmOperatorType ot)
static

◆ 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().