[Bf-blender-cvs] [7481d2a] master: Follow-up to my last commit: Fixed a wrong property name in the versioning code.

Tamito Kajiyama noreply at git.blender.org
Mon Jul 7 09:53:46 CEST 2014


Commit: 7481d2aad1fb1355b91f2759d59546872fb1b9ad
Author: Tamito Kajiyama
Date:   Mon Jul 7 16:52:50 2014 +0900
https://developer.blender.org/rB7481d2aad1fb1355b91f2759d59546872fb1b9ad

Follow-up to my last commit: Fixed a wrong property name in the versioning code.

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

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

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

diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c
index 7fa9b4e..50e7c83 100644
--- a/source/blender/blenloader/intern/versioning_270.c
+++ b/source/blender/blenloader/intern/versioning_270.c
@@ -300,7 +300,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
 	}
 
 	if (!MAIN_VERSION_ATLEAST(main, 271, 1)) {
-		if (!DNA_struct_elem_find(fd->filesdna, "Material", "float", "line[4]")) {
+		if (!DNA_struct_elem_find(fd->filesdna, "Material", "float", "line_col[4]")) {
 			Material *mat;
 
 			for (mat = main->mat.first; mat; mat = mat->id.next) {
@@ -308,6 +308,5 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
 				mat->line_col[3] = mat->alpha;
 			}
 		}
-
 	}
 }




More information about the Bf-blender-cvs mailing list