[Bf-blender-cvs] [6e6750a] render-layers: Fixing writing objects

Dalai Felinto noreply at git.blender.org
Tue Dec 6 15:57:29 CET 2016


Commit: 6e6750a06aaf7c010600eed7b267932c82329cb6
Author: Dalai Felinto
Date:   Tue Dec 6 14:48:49 2016 +0100
Branches: render-layers
https://developer.blender.org/rB6e6750a06aaf7c010600eed7b267932c82329cb6

Fixing writing objects

===================================================================

M	source/blender/blenloader/intern/readfile.c

===================================================================

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 842d8b8..1cf9b26 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -5510,16 +5510,9 @@ static void direct_link_view_settings(FileData *fd, ColorManagedViewSettings *vi
 static void direct_link_scene_collection(FileData *fd, SceneCollection *sc)
 {
 	link_list(fd, &sc->objects);
-	for (LinkData *link = sc->objects.first; link; link = link->next) {
-		link->data = newdataadr(fd, link->data);
-	}
-
 	link_list(fd, &sc->filter_objects);
-	for (LinkData *link = sc->filter_objects.first; link; link = link->next) {
-		link->data = newdataadr(fd, link->data);
-	}
-
 	link_list(fd, &sc->scene_collections);
+
 	for (SceneCollection *nsc = sc->scene_collections.first; nsc; nsc = nsc->next) {
 		direct_link_scene_collection(fd, nsc);
 	}




More information about the Bf-blender-cvs mailing list