Commit 16ed7f95 authored by Guillem Bartrina's avatar Guillem Bartrina
Browse files

some small fixes. replace 0xF1A6 trick with the safer dummy_canvas_env one

parent a24b4009
......@@ -2464,7 +2464,7 @@ static void canvas_abpush(t_canvas *x, t_symbol *s, int argc, t_atom *argv)
t_canvas *c = canvas_getcurrent();
t_symbol *name = argv[0].a_w.w_symbol;
t_binbuf *source = binbuf_new();
x->gl_env = 0xF1A6; //to save it as a root canvas
x->gl_env = dummy_canvas_env(canvas_getdir(x)->s_name); //to save it as a root canvas
mess1(&((t_text *)x)->te_pd, gensym("saveto"), source);
x->gl_env = 0;
......@@ -2559,7 +2559,8 @@ static void *ab_new(t_symbol *s, int argc, t_atom *argv)
}
else
{
error("ab_new: can't insantiate ab within itself\n cycle: %s", res);
if(!glist_amreloadingabstractions)
error("ab_new: can't insantiate ab within itself\n cycle: %s", res);
newest = 0;
}
}
......
......@@ -202,6 +202,8 @@ int canvas_hasarray(t_canvas *x)
/* JMZ: emit a closebang message */
void canvas_closebang(t_canvas *x);
void canvas_dirtyclimb(t_canvas *x, int n);
/* delete an object from a glist and free it */
void glist_delete(t_glist *x, t_gobj *y)
{
......
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