Use BLI_genericNodeN
authorDalai Felinto <dfelinto@gmail.com>
Thu, 24 Nov 2016 10:38:18 +0000 (11:38 +0100)
committerDalai Felinto <dfelinto@gmail.com>
Thu, 24 Nov 2016 10:38:18 +0000 (11:38 +0100)
source/blender/blenloader/intern/versioning_280.c

index c1434b1154d0e4d117b5e4687d9fcc2522932f15..60aa0b17a64b889e9976aa7bc4c0b04fed81ef63 100644 (file)
@@ -85,9 +85,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main)
 
                                for (int i = 0; i < 20; i++) {
                                        if ((base->lay & (1 << i)) != 0) {
-                                               LinkData *link = MEM_callocN(sizeof(LinkData), "doversion linkdata");
-                                               link->data = base_new;
-                                               BLI_addtail(&collections[i]->elements, link);
+                                               BLI_addtail(&collections[i]->elements, BLI_genericNodeN(base_new));
                                        }
                                }
                                base = base->next;