Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 2,228 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void BKE_scene_free_depsgraph_hash(Scene *scene) | void BKE_scene_free_depsgraph_hash(Scene *scene) | ||||
| { | { | ||||
| if (scene->depsgraph_hash == NULL) { | if (scene->depsgraph_hash == NULL) { | ||||
| return; | return; | ||||
| } | } | ||||
| BLI_ghash_free(scene->depsgraph_hash, depsgraph_key_free, depsgraph_key_value_free); | BLI_ghash_free(scene->depsgraph_hash, depsgraph_key_free, depsgraph_key_value_free); | ||||
| scene->depsgraph_hash = NULL; | |||||
| } | } | ||||
| /* Query depsgraph for a specific contexts. */ | /* Query depsgraph for a specific contexts. */ | ||||
| Depsgraph *BKE_scene_get_depsgraph(Scene *scene, ViewLayer *view_layer, bool allocate) | Depsgraph *BKE_scene_get_depsgraph(Scene *scene, ViewLayer *view_layer, bool allocate) | ||||
| { | { | ||||
| BLI_assert(scene != NULL); | BLI_assert(scene != NULL); | ||||
| BLI_assert(view_layer != NULL); | BLI_assert(view_layer != NULL); | ||||
| ▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines | |||||