[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25765] trunk/blender/source/blender/ windowmanager/intern/wm_gesture.c: *Disabled filled lasso drawing on Windows for now, was causing some strange problems,

joe joeedh at gmail.com
Wed Jan 6 16:46:57 CET 2010


What sort of strange problems? As far as I know, the SGI tesselator
implementation is used everywhere.

Anyway, you can use scanfill, it's not really difficult to use, look
at the old lasso code (though the old lasso code went through the
curve code and didn't use scanfill directly, not sure it really
matters though).

Joe

On Tue, Jan 5, 2010 at 10:51 PM, Matt Ebb <matt at mke3.net> wrote:
> Revision: 25765
>          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25765
> Author:   broken
> Date:     2010-01-06 07:51:04 +0100 (Wed, 06 Jan 2010)
>
> Log Message:
> -----------
> *Disabled filled lasso drawing on Windows for now, was causing some strange problems,
> perhaps GLU incompatibilities? If any Windows GL guru can help here, it would be
> most appreciated!
>
> Modified Paths:
> --------------
>    trunk/blender/source/blender/windowmanager/intern/wm_gesture.c
>
> Modified: trunk/blender/source/blender/windowmanager/intern/wm_gesture.c
> ===================================================================
> --- trunk/blender/source/blender/windowmanager/intern/wm_gesture.c      2010-01-06 06:04:07 UTC (rev 25764)
> +++ trunk/blender/source/blender/windowmanager/intern/wm_gesture.c      2010-01-06 06:51:04 UTC (rev 25765)
> @@ -209,6 +209,9 @@
>
>  }
>
> +#ifndef WIN32
> +/* Disabled for now, causing problems on Windows.. */
> +
>  /* more than 64 intersections will just leak.. not much and not a likely scenario */
>  typedef struct TessData { int num; short *intersections[64]; } TessData;
>
> @@ -237,10 +240,14 @@
>        gluDeleteTess(tess);
>  }
>
> +#endif
> +
>  static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt)
>  {
>        short *lasso= (short *)gt->customdata;
>        int i;
> +
> +#ifndef WIN32
>        TessData *data=MEM_callocN(sizeof(TessData), "tesselation data");
>        GLUtesselator *tess = gluNewTess();
>
> @@ -263,6 +270,8 @@
>        glDisable(GL_BLEND);
>
>        free_tess_data(tess, data);
> +
> +#endif
>
>        glEnable(GL_LINE_STIPPLE);
>        glColor3ub(96, 96, 96);
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>


More information about the Bf-committers mailing list