bugfix [#24704] UV editor: [x] modified does not update on change of modifiers
authorCampbell Barton <ideasman42@gmail.com>
Mon, 15 Nov 2010 07:07:14 +0000 (07:07 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 15 Nov 2010 07:07:14 +0000 (07:07 +0000)
source/blender/editors/space_image/space_image.c

index d77d153a32409757985e23310e918ac96033912b..d9772c79914e791a4765fc83df60dcb9fba67684 100644 (file)
@@ -638,14 +638,18 @@ static void image_listener(ScrArea *sa, wmNotifier *wmn)
                                        break;
                        }
                case NC_OBJECT:
+               {
+                       Object *ob= (Object *)wmn->reference;
                        switch(wmn->data) {
                                case ND_TRANSFORM:
-                                       if(sima->lock && (sima->flag & SI_DRAWSHADOW)) {
+                               case ND_MODIFIER:
+                                       if(ob && (ob->mode & OB_MODE_EDIT) && sima->lock && (sima->flag & SI_DRAWSHADOW)) {
                                                ED_area_tag_refresh(sa);
                                                ED_area_tag_redraw(sa);
                                        }
                                        break;
                        }
+               }
        }
 }