Commit d0d17d9b authored by pokergaming's avatar pokergaming
Browse files

fixed vis method for [draw]

parent 69b5bafb
...@@ -2981,6 +2981,11 @@ static void svg_togui(t_svg *x, t_template *template, t_word *data) ...@@ -2981,6 +2981,11 @@ static void svg_togui(t_svg *x, t_template *template, t_word *data)
sys_vgui("-matrix { {%g %g} {%g %g} {%g %g} }\\\n", sys_vgui("-matrix { {%g %g} {%g %g} {%g %g} }\\\n",
m1, m2, m3, m4, m5, m6); m1, m2, m3, m4, m5, m6);
} }
if (x->x_vis.a_flag)
{
sys_vgui("-state %s ", fielddesc_getfloat(&x->x_vis.a_attr,
template, data, 1) ? "normal" : "hidden");
}
} }
void svg_grouptogui(t_glist *g, t_template *template, t_word *data) void svg_grouptogui(t_glist *g, t_template *template, t_word *data)
...@@ -3037,8 +3042,8 @@ static void draw_vis(t_gobj *z, t_glist *glist, t_glist *parentglist, ...@@ -3037,8 +3042,8 @@ static void draw_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
}*/ }*/
/* see comment in plot_vis() */ /* see comment in plot_vis() */
if (vis && !fielddesc_getfloat(&sa->x_vis.a_attr, template, data, 0)) /*if (vis && !fielddesc_getfloat(&sa->x_vis.a_attr, template, data, 0))
return; return; */
if (vis) if (vis)
{ {
if (n > 2) if (n > 2)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment