From 1fab327fdf99fb06dff676814afea6074f50bff0 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Sun, 26 Jul 2015 00:18:44 +0200 Subject: 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. --- source/blender/blenloader/intern/readfile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index cc45af6e6f9..90aafa9f3ee 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) -- cgit v1.2.3