From 6401058c220e858488e37f1f965f92030a3c012e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 15 Nov 2010 07:07:14 +0000 Subject: [PATCH] bugfix [#24704] UV editor: [x] modified does not update on change of modifiers --- source/blender/editors/space_image/space_image.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index d77d153a324..d9772c79914 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -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; } + } } }