[Bf-committers] Patch for recent change to background image Trans==> Opacity #32898
Campbell Barton
ideasman42 at gmail.com
Sun Nov 7 10:58:45 CET 2010
Hi, was testing some other drawing changes so I didn't notice this error.
This change would invert the opacity for saved files so instead I
inverted the RNA setting.
On Sun, Nov 7, 2010 at 5:16 AM, Mike S <blenderdev at mikes.id.au> wrote:
> 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);
>
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
--
- Campbell
More information about the Bf-committers
mailing list