diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-27 03:01:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-27 03:01:59 +0300 |
commit | ebafb7e484fa45aed0f4be75cfb5d570d7d43f81 (patch) | |
tree | 68ef5946939d13d5ba8d4f6e85bc7955085e6841 /source/blender/blenloader | |
parent | 0d69ebe878477df8ac8beef8a58b54e74aa27d32 (diff) |
bugfix [#20823] Attempting to undo renaming a UV set on this scene causes a crash
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 26eafa38f8e..c0f0d7e54da 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -4886,8 +4886,10 @@ void lib_link_screen_restore(Main *newmain, bScreen *curscreen, Scene *curscene) sipo->editipo= NULL; #endif - if (ads->filter_grp) { - ads->filter_grp= restore_pointer_by_name(newmain, (ID *)ads->filter_grp, 0); + if(ads) { + if(ads->filter_grp) { + ads->filter_grp= restore_pointer_by_name(newmain, (ID *)ads->filter_grp, 0); + } } } else if(sl->spacetype==SPACE_BUTS) { |