Fix [#36845] New generated blank image doesn't update preview (properties editor)
authorThomas Dinges <blender@dingto.org>
Sat, 28 Sep 2013 20:04:49 +0000 (20:04 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 28 Sep 2013 20:04:49 +0000 (20:04 +0000)
* IMAGE_OT_NEW did not had a notifier yet for some weird reason.

source/blender/editors/space_image/image_ops.c

index cbd3917cacb0220bb2a9fd525ad75468e5cb7bba..2da109d281b4f8388ef41d03b65df193055ab664 100644 (file)
@@ -1804,6 +1804,8 @@ static int image_new_exec(bContext *C, wmOperator *op)
 
        BKE_image_signal(ima, (sima) ? &sima->iuser : NULL, IMA_SIGNAL_USER_NEW_IMAGE);
        
 
        BKE_image_signal(ima, (sima) ? &sima->iuser : NULL, IMA_SIGNAL_USER_NEW_IMAGE);
        
+       WM_event_add_notifier(C, NC_IMAGE | NA_EDITED, ima);
+       
        return OPERATOR_FINISHED;
 }
 
        return OPERATOR_FINISHED;
 }