Merge branch 'master' into blender2.8
Conflicts: source/blender/blenkernel/intern/scene.c
This commit is contained in:
@@ -403,6 +403,7 @@ Scene *BKE_scene_copy(Main *bmain, Scene *sce, int type)
|
||||
for (ViewLayer *view_layer_dst = sce_copy->view_layers.first; view_layer_dst; view_layer_dst = view_layer_dst->next) {
|
||||
for (FreestyleLineSet *lineset = view_layer_dst->freestyle_config.linesets.first; lineset; lineset = lineset->next) {
|
||||
if (lineset->linestyle) {
|
||||
id_us_min(&lineset->linestyle->id);
|
||||
/* XXX Not copying anim/actions here? */
|
||||
BKE_id_copy_ex(bmain, (ID *)lineset->linestyle, (ID **)&lineset->linestyle, 0, false);
|
||||
}
|
||||
@@ -411,6 +412,7 @@ Scene *BKE_scene_copy(Main *bmain, Scene *sce, int type)
|
||||
|
||||
/* Full copy of world (included animations) */
|
||||
if (sce_copy->world) {
|
||||
id_us_min(&sce_copy->world->id);
|
||||
BKE_id_copy_ex(bmain, (ID *)sce_copy->world, (ID **)&sce_copy->world, LIB_ID_COPY_ACTIONS, false);
|
||||
}
|
||||
|
||||
@@ -420,6 +422,7 @@ Scene *BKE_scene_copy(Main *bmain, Scene *sce, int type)
|
||||
/* Full copy of GreasePencil. */
|
||||
/* XXX Not copying anim/actions here? */
|
||||
if (sce_copy->gpd) {
|
||||
id_us_min(&sce_copy->gpd->id);
|
||||
BKE_id_copy_ex(bmain, (ID *)sce_copy->gpd, (ID **)&sce_copy->gpd, 0, false);
|
||||
}
|
||||
}
|
||||
@@ -433,7 +436,8 @@ Scene *BKE_scene_copy(Main *bmain, Scene *sce, int type)
|
||||
/* NOTE: part of SCE_COPY_LINK_DATA and SCE_COPY_FULL operations
|
||||
* are done outside of blenkernel with ED_object_single_users! */
|
||||
|
||||
/* camera */
|
||||
/* camera */
|
||||
/* XXX This is most certainly useless? Object have not yet been duplicated... */
|
||||
if (ELEM(type, SCE_COPY_LINK_DATA, SCE_COPY_FULL)) {
|
||||
ID_NEW_REMAP(sce_copy->camera);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user