Commit 672087ce authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Fix regression with [draw group]

parent 6af0938a
......@@ -7625,11 +7625,14 @@ t_canvas *canvas_templatecanvas_forgroup(t_canvas *c)
t_binbuf *b = c->gl_obj.te_binbuf;
if (!b)
{
return c;
}
t_atom *argv = binbuf_getvec(c->gl_obj.te_binbuf);
if (argv[0].a_type == A_SYMBOL &&
argv[0].a_w.w_symbol == gensym("group"))
return c;
}
t_atom *argv = binbuf_getvec(b);
if (binbuf_getnatom(b) > 1 &&
argv[0].a_type == A_SYMBOL &&
argv[0].a_w.w_symbol == gensym("draw") &&
argv[1].a_type == A_SYMBOL &&
argv[1].a_w.w_symbol == gensym("group"))
{
templatecanvas = canvas_templatecanvas_forgroup(c->gl_owner);
}
......
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