Blender V5.0
ED_asset_type.hh File Reference
#include "DNA_ID.h"

Go to the source code of this file.

Namespaces

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

Macros

#define ED_ASSET_TYPE_IDS_NON_EXPERIMENTAL_FLAGS
#define ED_ASSET_TYPE_IDS_NON_EXPERIMENTAL_UI_STRING   "Material, Collection, Object, Brush, Pose Action, Node Group, World or Scene"

Functions

bool blender::ed::asset::id_type_is_non_experimental (const ID *id)
bool blender::ed::asset::id_type_is_supported (const ID *id)
int64_t blender::ed::asset::types_supported_as_filter_flags ()

Macro Definition Documentation

◆ ED_ASSET_TYPE_IDS_NON_EXPERIMENTAL_FLAGS

#define ED_ASSET_TYPE_IDS_NON_EXPERIMENTAL_FLAGS
Value:
#define FILTER_ID_OB
Definition DNA_ID.h:1214
#define FILTER_ID_AC
Definition DNA_ID.h:1197
#define FILTER_ID_MA
Definition DNA_ID.h:1208
#define FILTER_ID_BR
Definition DNA_ID.h:1199
#define FILTER_ID_GR
Definition DNA_ID.h:1203
#define FILTER_ID_SCE
Definition DNA_ID.h:1217
#define FILTER_ID_WO
Definition DNA_ID.h:1223
#define FILTER_ID_NT
Definition DNA_ID.h:1213

Definition at line 18 of file ED_asset_type.hh.

Referenced by rna_def_fileselect_asset_idfilter(), and blender::ed::asset::types_supported_as_filter_flags().

◆ ED_ASSET_TYPE_IDS_NON_EXPERIMENTAL_UI_STRING

#define ED_ASSET_TYPE_IDS_NON_EXPERIMENTAL_UI_STRING   "Material, Collection, Object, Brush, Pose Action, Node Group, World or Scene"

Utility: A string enumerating the non-experimental asset types. This is useful info to the user, it should be displayed in tool-tips or messages. Macro to support concatenating static strings with this (not all UI code supports dynamic strings nicely). Should start with a consonant, so usages can prefix it with "a" (not "an").

Definition at line 42 of file ED_asset_type.hh.

Referenced by blender::ed::asset::asset_operation_unsupported_type_msg().