Fix [#22303] bpy.ops.image.reload(); texture-button is always inactive
authorMatt Ebb <matt@mke3.net>
Tue, 18 May 2010 07:59:40 +0000 (07:59 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 18 May 2010 07:59:40 +0000 (07:59 +0000)
source/blender/editors/space_image/image_ops.c

index 1241dbd9f4e55f128180533794a838e4ed43ce74..274d26c8760aea106d02a9c7b2aef63fc33aac7d 100644 (file)
@@ -1155,7 +1155,6 @@ static int reload_exec(bContext *C, wmOperator *op)
        BKE_image_signal(ima, (sima)? &sima->iuser: NULL, IMA_SIGNAL_RELOAD);
 
        WM_event_add_notifier(C, NC_IMAGE|NA_EDITED, ima);
-       ED_area_tag_redraw(CTX_wm_area(C));
        
        return OPERATOR_FINISHED;
 }
@@ -1168,7 +1167,6 @@ void IMAGE_OT_reload(wmOperatorType *ot)
        
        /* api callbacks */
        ot->exec= reload_exec;
-       ot->poll= space_image_poll;
 
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;