Fix for a bug that Freestyle settings of a scene are reset when copying the scene.

Problem report by IRIE Shinsuke, many thanks!
This commit is contained in:
Tamito Kajiyama
2013-01-31 20:42:25 +00:00
parent df556a4eb6
commit ad96f8e8b8

View File

@@ -217,11 +217,7 @@ Scene *BKE_scene_copy(Scene *sce, int type)
new_srl = scen->r.layers.first;
for (srl = sce->r.layers.first; srl; srl = srl->next) {
if (type == SCE_COPY_FULL) {
FRS_copy_freestyle_config(&new_srl->freestyleConfig, &srl->freestyleConfig);
} else {
FRS_init_freestyle_config(&srl->freestyleConfig);
}
FRS_copy_freestyle_config(&new_srl->freestyleConfig, &srl->freestyleConfig);
new_srl = new_srl->next;
}
}