Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
fe1c7b37
Commit
fe1c7b37
authored
Aug 17, 2015
by
Jonathan Wilkes
Browse files
add ".pd" extension to abstraction name in canvas type definition
parent
18ab6094
Changes
1
Show whitespace changes
Inline
Side-by-side
pd/src/g_template.c
View file @
fe1c7b37
...
...
@@ -88,7 +88,7 @@ t_template *template_new(t_symbol *templatesym, int argc, t_atom *argv)
// newtype = DT_LIST;
else if (newtypesym == gensym("canvas"))
{
t_symbol *filename
;
char filename[MAXPDSTRING+3]
;
t_binbuf *b = binbuf_new();
if (argc < 3 || argv[2].a_type != A_SYMBOL)
{
...
...
@@ -96,9 +96,9 @@ t_template *template_new(t_symbol *templatesym, int argc, t_atom *argv)
goto bad;
}
// filename = canvas_makebindsym(argv[2].a_w.w_symbol);
filename =
argv[2].a_w.w_symbol;
if (binbuf_read_via_canvas(b, filename
->s_name
, canvas_getcurrent(), 0))
post("warning: abstraction %s not found", filename
->s_name
);
sprintf(filename, "%s.pd",
argv[2].a_w.w_symbol
->s_name)
;
if (binbuf_read_via_canvas(b, filename, canvas_getcurrent(), 0))
post("warning: abstraction %s not found", filename);
else
newbinbuf = b;
newtype = DT_LIST;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment