Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_context.h
| Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | |||||
| /* Gets pointer to the dependency graph. | /* Gets pointer to the dependency graph. | ||||
| * If it doesn't exist yet, it will be allocated. | * If it doesn't exist yet, it will be allocated. | ||||
| * | * | ||||
| * The result dependency graph is NOT guaranteed to be up-to-date neither from relation nor from | * The result dependency graph is NOT guaranteed to be up-to-date neither from relation nor from | ||||
| * evaluated data points of view. | * evaluated data points of view. | ||||
| * | * | ||||
| * NOTE: Can not be used if access to a fully evaluated datablock is needed. */ | * NOTE: Can not be used if access to a fully evaluated datablock is needed. */ | ||||
| struct Depsgraph *CTX_data_depsgraph(const bContext *C); | struct Depsgraph *CTX_data_depsgraph_pointer(const bContext *C); | ||||
| /* Get dependency graph which is expected to be fully evaluated. | |||||
| * | |||||
| * In the release builds it is the same as CTX_data_depsgraph_pointer(). In the debug builds extra | |||||
| * sanity checks are done. Additionally, this provides more semantic meaning to what is exactly | |||||
| * expected to happen. */ | |||||
| struct Depsgraph *CTX_data_expect_evaluated_depsgraph(const bContext *C); | |||||
| /* Gets fully updated and evaluated dependency graph. | /* Gets fully updated and evaluated dependency graph. | ||||
| * | * | ||||
| * All the relations and evaluated objects are guaranteed to be up to date. | * All the relations and evaluated objects are guaranteed to be up to date. | ||||
| * | * | ||||
| * NOTE: Will be expensive if there are relations or objects tagged for update. | * NOTE: Will be expensive if there are relations or objects tagged for update. | ||||
| * NOTE: If there are pending updates depsgraph hooks will be invoked. */ | * NOTE: If there are pending updates depsgraph hooks will be invoked. */ | ||||
| struct Depsgraph *CTX_data_evaluated_depsgraph(const bContext *C); | struct Depsgraph *CTX_data_ensure_evaluated_depsgraph(const bContext *C); | ||||
| /* Will Return NULL if depsgraph is not allocated yet. | /* Will Return NULL if depsgraph is not allocated yet. | ||||
| * Only used by handful of operators which are run on file load. | * Only used by handful of operators which are run on file load. | ||||
| */ | */ | ||||
| struct Depsgraph *CTX_data_depsgraph_on_load(const bContext *C); | struct Depsgraph *CTX_data_depsgraph_on_load(const bContext *C); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||