[Bf-blender-cvs] [f60ad41] layers: Layers doversion: use 1, 2, 3, ... for new collections

Dalai Felinto noreply at git.blender.org
Wed Nov 23 19:12:11 CET 2016


Commit: f60ad418938aa2489607d942d5fba69edb1ca158
Author: Dalai Felinto
Date:   Wed Nov 23 19:10:42 2016 +0100
Branches: layers
https://developer.blender.org/rBf60ad418938aa2489607d942d5fba69edb1ca158

Layers doversion: use 1, 2, 3, ... for new collections

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

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

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

diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 4bb7416..c1434b1 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -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;
 			}




More information about the Bf-blender-cvs mailing list