[Bf-committers] Patch for recent change to background image Trans==> Opacity #32898
Mike S
blenderdev at mikes.id.au
Sun Nov 7 06:16:52 CET 2010
Hi all,
recent patch #32898 changed the background from Trans to Opacity but did
not change the actual draw function which was set up to take
transparancy 0-1 values, Thus background image was shown when Opacity =
0 rather than when = 1.
Mike.
Index: source/blender/editors/space_view3d/view3d_draw.c
===================================================================
--- source/blender/editors/space_view3d/view3d_draw.c (revision 32906)
+++ source/blender/editors/space_view3d/view3d_draw.c (working copy)
@@ -1340,7 +1340,7 @@
ED_region_pixelspace(ar);
glPixelZoom(zoomx, zoomy);
- glColor4f(1.0, 1.0, 1.0, 1.0-bgpic->blend);
+ glColor4f(1.0, 1.0, 1.0, bgpic->blend);
glaDrawPixelsTex(x1, y1, ibuf->x, ibuf->y, GL_UNSIGNED_BYTE,
ibuf->rect);
glPixelZoom(1.0, 1.0);
More information about the Bf-committers
mailing list