Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
2e5ccab5
Commit
2e5ccab5
authored
4 years ago
by
Guillem Bartrina
Browse files
Options
Downloads
Patches
Plain Diff
fix wrong initalized env for [ab] that prevented them from using filesystem utilities
parent
cfb49499
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!575
2.15.0 release candidate
,
!574
Draft: 2.15.0 release candidate
,
!560
feature - private abstractions [ab]
,
!483
WIP: private patch abstractions [ab]. first approach
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/g_canvas.c
+3
-2
3 additions, 2 deletions
pd/src/g_canvas.c
with
3 additions
and
2 deletions
pd/src/g_canvas.c
+
3
−
2
View file @
2e5ccab5
...
@@ -1927,10 +1927,11 @@ static char ab_templatecanvas[] = "#N canvas;\n";
...
@@ -1927,10 +1927,11 @@ static char ab_templatecanvas[] = "#N canvas;\n";
/* create an ab instance from its source */
/* create an ab instance from its source */
static
t_pd
*
do_create_ab
(
t_ab_definition
*
abdef
,
int
argc
,
t_atom
*
argv
)
static
t_pd
*
do_create_ab
(
t_ab_definition
*
abdef
,
int
argc
,
t_atom
*
argv
)
{
{
canvas_setargs
(
argc
,
argv
);
canvas_setargs
(
argc
,
argv
);
int
dspstate
=
canvas_suspend_dsp
();
int
dspstate
=
canvas_suspend_dsp
();
glob_setfilename
(
0
,
abdef
->
ad_name
,
gensym
(
"[ab]"
));
char
filename
[
MAXPDSTRING
];
sprintf
(
filename
,
"[ab] %s"
,
abdef
->
ad_name
->
s_name
);
glob_setfilename
(
0
,
gensym
(
filename
),
canvas_getdir
(
canvas_getcurrent
()));
canvas_setabsource
(
abdef
);
// set the ab source
canvas_setabsource
(
abdef
);
// set the ab source
binbuf_eval
(
abdef
->
ad_source
,
0
,
0
,
0
);
binbuf_eval
(
abdef
->
ad_source
,
0
,
0
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment