Layers doversion: use 1, 2, 3, ... for new collections
authorDalai Felinto <dfelinto@gmail.com>
Wed, 23 Nov 2016 18:10:42 +0000 (19:10 +0100)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 23 Nov 2016 18:10:42 +0000 (19:10 +0100)
source/blender/blenloader/intern/versioning_280.c

index 4bb7416a61f82ce1b36784c78b5cce94b0d19331..c1434b1154d0e4d117b5e4687d9fcc2522932f15 100644 (file)
@@ -68,7 +68,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main)
                                        collection->flag |= COLLECTION_VISIBLE;
                                }
 
-                               BLI_snprintf(collection->name, sizeof(collection->name), "%d", i);
+                               BLI_snprintf(collection->name, sizeof(collection->name), "%d", i + 1);
                                collections[i] = collection;
                        }