GPencil: Fix field type error in initialization
authorAntonioya <blendergit@gmail.com>
Fri, 8 Mar 2019 07:49:25 +0000 (08:49 +0100)
committerAntonioya <blendergit@gmail.com>
Fri, 8 Mar 2019 07:49:25 +0000 (08:49 +0100)
source/blender/blenloader/intern/versioning_280.c

index d68f0fe5d2c36f10b282a0c61cdb5da3df0bcb11..8a3e948e4d28863f0bf548b1384393f974e9c2a9 100644 (file)
@@ -1090,7 +1090,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
                        }
 
                        /* Init grease pencil pixel size factor */
                        }
 
                        /* 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;
                                }
                                for (bGPdata *gpd = bmain->gpencils.first; gpd; gpd = gpd->id.next) {
                                        gpd->pixfactor = GP_DEFAULT_PIX_FACTOR;
                                }