add missing image/mask restore call when undo'ing
authorCampbell Barton <ideasman42@gmail.com>
Fri, 27 Jul 2012 13:24:08 +0000 (13:24 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 27 Jul 2012 13:24:08 +0000 (13:24 +0000)
source/blender/blenloader/intern/readfile.c

index a0529271666591477e8ea7aaf6efee36f9bf2a13..7e7561d58af93f28fd73927038a1de1364ab38c8 100644 (file)
@@ -5598,6 +5598,7 @@ void lib_link_screen_restore(Main *newmain, bScreen *curscreen, Scene *curscene)
                                         * so assume that here we're doing for undo only...
                                         */
                                        sima->gpd = restore_pointer_by_name(newmain, (ID *)sima->gpd, 1);
+                                       sima->mask_info.mask = restore_pointer_by_name(newmain, (ID *)sima->mask_info.mask, 1);
                                }
                                else if (sl->spacetype == SPACE_SEQ) {
                                        SpaceSeq *sseq = (SpaceSeq *)sl;