Yesterday's fix for Composite preview had bug for render output drawing in
authorTon Roosendaal <ton@blender.org>
Sat, 31 Mar 2007 10:37:15 +0000 (10:37 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 31 Mar 2007 10:37:15 +0000 (10:37 +0000)
Image window... variable 'draw cropped' was hanging.

source/blender/src/drawimage.c

index 2882a3706841193f37b93759765306190f135797..8b1769faced5db4bef0e9dd48da516587eb95ec6 100644 (file)
@@ -1133,8 +1133,12 @@ void image_preview_event(int event)
                exec= 1;
        }
        else {
-               G.scene->r.scemode |= R_COMP_CROP;
-               exec= 1;
+               if(image_preview_active(curarea, NULL, NULL)) {
+                       G.scene->r.scemode |= R_COMP_CROP;
+                       exec= 1;
+               }
+               else
+                       G.scene->r.scemode &= ~R_COMP_CROP;
        }
        
        if(exec && G.scene->nodetree) {