Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_query.cc
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | for (int id_type_index = 0; id_type_index < MAX_LIBARRAY; id_type_index++) { | ||||
| if (deg_graph->id_type_updated[id_type_index]) { | if (deg_graph->id_type_updated[id_type_index]) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| bool DEG_id_type_any_exist(const Depsgraph *depsgraph, short id_type) | |||||
| { | |||||
| const DEG::Depsgraph *deg_graph = reinterpret_cast<const DEG::Depsgraph *>(depsgraph); | |||||
| return deg_graph->id_type_exist[BKE_idcode_to_index(id_type)] != 0; | |||||
| } | |||||
| uint32_t DEG_get_eval_flags_for_id(const Depsgraph *graph, ID *id) | uint32_t DEG_get_eval_flags_for_id(const Depsgraph *graph, ID *id) | ||||
| { | { | ||||
| if (graph == NULL) { | if (graph == NULL) { | ||||
| /* Happens when converting objects to mesh from a python script | /* Happens when converting objects to mesh from a python script | ||||
| * after modifying scene graph. | * after modifying scene graph. | ||||
| * | * | ||||
| * Currently harmless because it's only called for temporary | * Currently harmless because it's only called for temporary | ||||
| * objects which are out of the DAG anyway. */ | * objects which are out of the DAG anyway. */ | ||||
| ▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines | |||||