Commit: 252e0d35ee1e1c4983a0aaf4237993412ad47369
Author: Antonioya
Date: Fri Mar 8 08:49:25 2019 +0100
Branches: master
https://developer.blender.org/rB252e0d35ee1e1c4983a0aaf4237993412ad47369
GPencil: Fix field type error in initialization
===================================================================
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 d68f0fe5d2c..8a3e948e4d2 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -1090,7 +1090,7 @@ void blo_do_versions_280(FileData *fd, Library
*UNUSED(lib), Main *bmain)
}
/* Init grease pencil pixel size factor */
- if (!DNA_struct_elem_find(fd->filesdna, "bGPdata",
"int", "pixfactor")) {
+ if (!DNA_struct_elem_find(fd->filesdna, "bGPdata",
"float", "pixfactor")) {
for (bGPdata *gpd = bmain->gpencils.first; gpd;
gpd = gpd->id.next) {
gpd->pixfactor = GP_DEFAULT_PIX_FACTOR;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs