[Bf-blender-cvs] [1fab327] master: Fix T45562: Crashing pre 2.5 file with grid subdivisions set to 0
Julian Eisel
noreply at git.blender.org
Sun Jul 26 00:21:26 CEST 2015
Commit: 1fab327fdf99fb06dff676814afea6074f50bff0
Author: Julian Eisel
Date: Sun Jul 26 00:18:44 2015 +0200
Branches: master
https://developer.blender.org/rB1fab327fdf99fb06dff676814afea6074f50bff0
Fix T45562: Crashing pre 2.5 file with grid subdivisions set to 0
Seems like the original version patch for this wasn't made correctly.
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index cc45af6..90aafa9 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -6576,6 +6576,8 @@ void blo_do_versions_view3d_split_250(View3D *v3d, ListBase *regions)
/* this was not initialized correct always */
if (v3d->twtype == 0)
v3d->twtype = V3D_MANIP_TRANSLATE;
+ if (v3d->gridsubdiv == 0)
+ v3d->gridsubdiv = 10;
}
static bool direct_link_screen(FileData *fd, bScreen *sc)
More information about the Bf-blender-cvs
mailing list