Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | else { | ||||
| scen->depsgraph = NULL; | scen->depsgraph = NULL; | ||||
| scen->obedit = NULL; | scen->obedit = NULL; | ||||
| scen->fps_info = NULL; | scen->fps_info = NULL; | ||||
| if (sce->rigidbody_world) | if (sce->rigidbody_world) | ||||
| scen->rigidbody_world = BKE_rigidbody_world_copy(sce->rigidbody_world); | scen->rigidbody_world = BKE_rigidbody_world_copy(sce->rigidbody_world); | ||||
| BLI_duplicatelist(&(scen->markers), &(sce->markers)); | BLI_duplicatelist(&(scen->markers), &(sce->markers)); | ||||
| BLI_duplicatelist(&(scen->transform_spaces), &(sce->transform_spaces)); | |||||
| BLI_duplicatelist(&(scen->r.layers), &(sce->r.layers)); | BLI_duplicatelist(&(scen->r.layers), &(sce->r.layers)); | ||||
| BLI_duplicatelist(&(scen->r.views), &(sce->r.views)); | BLI_duplicatelist(&(scen->r.views), &(sce->r.views)); | ||||
| BKE_keyingsets_copy(&(scen->keyingsets), &(sce->keyingsets)); | BKE_keyingsets_copy(&(scen->keyingsets), &(sce->keyingsets)); | ||||
| if (sce->nodetree) { | if (sce->nodetree) { | ||||
| /* ID's are managed on both copy and switch */ | /* ID's are managed on both copy and switch */ | ||||
| scen->nodetree = ntreeCopyTree(bmain, sce->nodetree); | scen->nodetree = ntreeCopyTree(bmain, sce->nodetree); | ||||
| BKE_libblock_relink_ex(bmain, scen->nodetree, &sce->id, &scen->id, false); | BKE_libblock_relink_ex(bmain, scen->nodetree, &sce->id, &scen->id, false); | ||||
| ▲ Show 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | for (srl = sce->r.layers.first; srl; srl = srl->next) { | ||||
| if (srl->prop != NULL) { | if (srl->prop != NULL) { | ||||
| IDP_FreeProperty(srl->prop); | IDP_FreeProperty(srl->prop); | ||||
| MEM_freeN(srl->prop); | MEM_freeN(srl->prop); | ||||
| } | } | ||||
| BKE_freestyle_config_free(&srl->freestyleConfig); | BKE_freestyle_config_free(&srl->freestyleConfig); | ||||
| } | } | ||||
| BLI_freelistN(&sce->markers); | BLI_freelistN(&sce->markers); | ||||
| BLI_freelistN(&sce->transform_spaces); | |||||
| BLI_freelistN(&sce->r.layers); | BLI_freelistN(&sce->r.layers); | ||||
| BLI_freelistN(&sce->r.views); | BLI_freelistN(&sce->r.views); | ||||
| if (sce->toolsettings) { | if (sce->toolsettings) { | ||||
| if (sce->toolsettings->vpaint) { | if (sce->toolsettings->vpaint) { | ||||
| BKE_paint_free(&sce->toolsettings->vpaint->paint); | BKE_paint_free(&sce->toolsettings->vpaint->paint); | ||||
| MEM_freeN(sce->toolsettings->vpaint); | MEM_freeN(sce->toolsettings->vpaint); | ||||
| } | } | ||||
| if (sce->toolsettings->wpaint) { | if (sce->toolsettings->wpaint) { | ||||
| BKE_paint_free(&sce->toolsettings->wpaint->paint); | BKE_paint_free(&sce->toolsettings->wpaint->paint); | ||||
| MEM_freeN(sce->toolsettings->wpaint); | MEM_freeN(sce->toolsettings->wpaint); | ||||
| ▲ Show 20 Lines • Show All 1,685 Lines • Show Last 20 Lines | |||||