bugfix [#20823] Attempting to undo renaming a UV set on this scene causes a crash

This commit is contained in:
2010-01-27 00:01:59 +00:00
parent 0d69ebe878
commit ebafb7e484

View File

@@ -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) {