From 2d0ca79086cbf20aecd92bc0c5719a66677b6948 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Mon, 9 Jun 2014 01:48:48 -0400
Subject: [PATCH] *added debugging statements and additional annotation

---
 pd/src/g_scalar.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pd/src/g_scalar.c b/pd/src/g_scalar.c
index 5f459f014..ff1f6dd31 100644
--- a/pd/src/g_scalar.c
+++ b/pd/src/g_scalar.c
@@ -717,7 +717,7 @@ static void scalar_groupvis(t_scalar *x, t_glist *owner, t_template *template,
 */
 static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
 {
-    //fprintf(stderr,"scalar_vis %d\n", vis);
+    //fprintf(stderr,"scalar_vis %d %lx\n", vis, (t_int)z);
     t_scalar *x = (t_scalar *)z;
 
     x->sc_bboxcache = 0;
@@ -790,6 +790,8 @@ static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
     sys_unqueuegui(x);
     if (glist_isselected(owner, &x->sc_gobj))
     {
+        // we removed this because it caused infinite recursion
+        // in the scalar-help.pd example
         //scalar_select(z, owner, 1);
         scalar_drawselectrect(x, owner, 0);
         scalar_drawselectrect(x, owner, 1);
-- 
GitLab