Skip to content

Commit

Permalink
SCSynthDef: only require SCLang if compiling options were specified.
Browse files Browse the repository at this point in the history
If just loading from scsyndef file then an interpreter not needed.
  • Loading branch information
crucialfelix committed Apr 21, 2016
1 parent 82bfdcc commit b44a995
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dryads/SCSynthDef.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export default class SCSynthDef extends Dryad {
* then this will wrap itself in an SCLang (language interpreter).
*/
requireParent() {
return 'SCLang';
if (this.properties.source || this.properties.compileFrom) {
return 'SCLang';
}
}

prepareForAdd() {
Expand Down

0 comments on commit b44a995

Please sign in to comment.