26#include "RNA_prototypes.hh"
45 if (
id->orig_id ==
nullptr) {
49 return id_cast<ID *>(
id->orig_id);
54 const ID *const_id =
id;
67 if (id_node ==
nullptr) {
75 const ID *const_id =
id;
84 return deg_graph->
scene;
96 return deg_graph->
bmain;
102 return deg_graph->
mode;
108 return deg_graph->
ctime;
135 if (id_node ==
nullptr) {
147 if (id_node ==
nullptr) {
152 if (component_node ==
nullptr) {
166 if (graph ==
nullptr) {
177 if (id_node ==
nullptr) {
189 if (graph ==
nullptr) {
200 if (id_node ==
nullptr) {
226 if (scene_cow ==
nullptr) {
235 return view_layer_cow;
252 if ((ptr ==
nullptr) || (r_ptr_eval ==
nullptr)) {
260 r_ptr_eval->
data =
static_cast<void *
>(cow_id);
263 else if (ptr->
type == RNA_PoseBone) {
267 const Object *ob_eval = id_cast<Object *>(cow_id);
271 r_ptr_eval->
data = pchan_eval;
285 "%s: Couldn't resolve RNA path ('%s') relative to evaluated ID (%p) for '%s'\n",
288 static_cast<void *
>(cow_id),
295 "%s: Couldn't get RNA path for %s relative to %s\n",
315 return id.runtime->depsgraph;
395 if (!component_node) {
399 if (!operation_node) {
Blender kernel action and pose functionality.
Object is a sort of wrapper for general info.
double total_evaluation_time() const
NodeType nodeTypeFromSceneComponent(eDepsSceneComponentType component)
bool deg_eval_copy_is_expanded(const ID *id_cow)
static const ID * get_evaluated_id(const Depsgraph *deg_graph, const ID *id)
static const ID * get_original_id(const ID *id)
@ DEPSOP_FLAG_NEEDS_UPDATE
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
std::optional< double > DEG_get_last_evaluation_time(const Depsgraph *depsgraph)
ID * DEG_get_original_id(ID *id)
bool RNA_path_resolve(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
bool DEG_is_fully_evaluated(const Depsgraph *depsgraph)
PointerRNA RNA_id_pointer_create(ID *id)
bool DEG_id_is_fully_evaluated(const Depsgraph *depsgraph, const ID *id_eval)
bool DEG_scene_component_is_user_modified(const Depsgraph *graph, const Scene *scene, eDepsSceneComponentType component_type)
std::optional< std::string > RNA_path_from_ID_to_struct(const PointerRNA *ptr)
void * BLI_findstring(const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
ID * DEG_get_evaluated_id(const Depsgraph *depsgraph, ID *id)
uint32_t DEG_get_eval_flags_for_id(const Depsgraph *graph, const ID *id)
void DEG_get_customdata_mask_for_object(const Depsgraph *graph, Object *object, CustomData_MeshMasks *r_mask)
bool DEG_id_is_user_modified(const Depsgraph *graph, const ID *id)
Depsgraph * DEG_get_depsgraph_by_id(const ID &id)
static bool operation_needs_update(const ID &id, const deg::NodeType component_type, const deg::OperationCode opcode)
bool DEG_id_type_any_exists(const Depsgraph *depsgraph, short id_type)
bool DEG_object_transform_is_evaluated(const Object &object)
ViewLayer * DEG_get_input_view_layer(const Depsgraph *graph)
bool DEG_id_type_any_updated(const Depsgraph *depsgraph)
Main * DEG_get_bmain(const Depsgraph *graph)
int BKE_idtype_idcode_to_index(short idcode)
ViewLayer * DEG_get_evaluated_view_layer(const Depsgraph *graph)
void DEG_get_evaluated_rna_pointer(const Depsgraph *depsgraph, PointerRNA *ptr, PointerRNA *r_ptr_eval)
eEvaluationMode DEG_get_mode(const Depsgraph *graph)
bool DEG_is_evaluated_id(const ID *id)
const char * RNA_struct_identifier(const StructRNA *type)
T * DEG_get_original(T *id)
bool DEG_collection_geometry_is_evaluated(const Collection &collection)
Scene * DEG_get_input_scene(const Depsgraph *graph)
bool DEG_id_type_updated(const Depsgraph *depsgraph, short id_type)
bool DEG_is_original_id(const ID *id)
Scene * DEG_get_evaluated_scene(const Depsgraph *graph)
bool DEG_object_geometry_is_evaluated(const Object &object)
float DEG_get_ctime(const Depsgraph *graph)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
ListBaseT< ViewLayer > view_layers
OperationNode * find_operation(OperationIDKey key) const
IDNode * find_id_node(const ID *id) const
char id_type_updated[INDEX_ID_MAX]
char id_type_exist[INDEX_ID_MAX]
Set< OperationNode * > entry_tags
bool need_update_relations
DEGCustomDataMeshMasks customdata_masks
Map< ComponentIDKey, ComponentNode * > components
ComponentNode * find_component(NodeType type, StringRef name="") const