From d305df2226ccdf371d127d1c4f39690042f483bd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 25 Nov 2013 08:37:57 +1100 Subject: Transform: old todo, removing an orientation now checks all screens. also fix for using uninitialized matrix when an out-of-range index is set for custom orientations. --- source/blender/blenloader/intern/readfile.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source/blender/blenloader/intern/readfile.c') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index ad3b0df3ad8..c7e82c1fe7f 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5944,14 +5944,6 @@ void blo_lib_link_screen_restore(Main *newmain, bScreen *curscreen, Scene *cursc /* not very nice, but could help */ if ((v3d->layact & v3d->lay) == 0) v3d->layact = v3d->lay; - - /* its possible the current transform orientation has been removed */ - if (v3d->twmode >= V3D_MANIP_CUSTOM) { - const int selected_index = (v3d->twmode - V3D_MANIP_CUSTOM); - if (!BLI_findlink(&sc->scene->transform_spaces, selected_index)) { - v3d->twmode = V3D_MANIP_GLOBAL; - } - } /* free render engines for now */ for (ar = sa->regionbase.first; ar; ar = ar->next) { -- cgit v1.2.3