Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 542 Lines • ▼ Show 20 Lines | if (sce->master_collection) { | ||||
| sce->master_collection = NULL; | sce->master_collection = NULL; | ||||
| } | } | ||||
| if (sce->eevee.light_cache) { | if (sce->eevee.light_cache) { | ||||
| EEVEE_lightcache_free(sce->eevee.light_cache); | EEVEE_lightcache_free(sce->eevee.light_cache); | ||||
| sce->eevee.light_cache = NULL; | sce->eevee.light_cache = NULL; | ||||
| } | } | ||||
| if (sce->display.shading.prop) { | |||||
| IDP_FreeProperty(sce->display.shading.prop); | |||||
| sce->display.shading.prop = NULL; | |||||
| } | |||||
| /* These are freed on doversion. */ | /* These are freed on doversion. */ | ||||
| BLI_assert(sce->layer_properties == NULL); | BLI_assert(sce->layer_properties == NULL); | ||||
| } | } | ||||
| void BKE_scene_free(Scene *sce) | void BKE_scene_free(Scene *sce) | ||||
| { | { | ||||
| BKE_scene_free_ex(sce, true); | BKE_scene_free_ex(sce, true); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,977 Lines • Show Last 20 Lines | |||||