From d0d17d9bb293f00ecf2effa9efa7cc0eb1c20b57 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jancsika@yahoo.com>
Date: Thu, 22 May 2014 19:35:11 -0400
Subject: [PATCH] fixed vis method for [draw]

---
 pd/src/g_template.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/pd/src/g_template.c b/pd/src/g_template.c
index 33a6f5c41..5a7d1f7bf 100644
--- a/pd/src/g_template.c
+++ b/pd/src/g_template.c
@@ -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",
             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)
@@ -3037,8 +3042,8 @@ static void draw_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
     }*/
     
         /* see comment in plot_vis() */
-    if (vis && !fielddesc_getfloat(&sa->x_vis.a_attr, template, data, 0))
-        return;
+    /*if (vis && !fielddesc_getfloat(&sa->x_vis.a_attr, template, data, 0))
+        return; */
     if (vis)
     {
         if (n > 2)
-- 
GitLab