Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_query.cc
| Show All 23 Lines | |||||
| */ | */ | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| extern "C" { | extern "C" { | ||||
| #include <string.h> // XXX: memcpy | #include <string.h> // XXX: memcpy | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_listbase.h" | |||||
| #include "BLI_ghash.h" | |||||
| #include "BKE_action.h" // XXX: BKE_pose_channel_find_name | |||||
| #include "BKE_customdata.h" | #include "BKE_customdata.h" | ||||
| #include "BKE_idcode.h" | #include "BKE_idcode.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BLI_listbase.h" | |||||
| #include "BKE_action.h" // XXX: BKE_pose_channel_from_name | |||||
| } /* extern "C" */ | } /* extern "C" */ | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| ▲ Show 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| return !DEG_is_original_id(id); | return !DEG_is_original_id(id); | ||||
| } | } | ||||
| bool DEG_is_evaluated_object(Object *object) | bool DEG_is_evaluated_object(Object *object) | ||||
| { | { | ||||
| return !DEG_is_original_object(object); | return !DEG_is_original_object(object); | ||||
| } | } | ||||
| bool DEG_is_fully_evaluated(const struct Depsgraph *depsgraph) | |||||
| { | |||||
| const DEG::Depsgraph *deg_graph = (const DEG::Depsgraph *)depsgraph; | |||||
| /* Check whether relations are up to date. */ | |||||
| if (deg_graph->need_update) { | |||||
| return false; | |||||
| } | |||||
| /* Check whether IDs are up to date. */ | |||||
| if (BLI_gset_len(deg_graph->entry_tags) > 0) { | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||