Skip to content

Commit

Permalink
AtkMatrix:-initFromFile : ensure 'kind' attribute is loaded from file…
Browse files Browse the repository at this point in the history
… as a Symbol.
  • Loading branch information
mtmccrea committed Jun 13, 2018
1 parent 2976a6e commit e4ec543
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Classes/ATKMatrix.sc
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,12 @@ AtkMatrix {
};

matrix = Matrix.with(fileParse.matrix.asFloat);
kind = fileParse.kind ?? resolvedPathName.fileNameWithoutExtension.asSymbol;

kind = if (fileParse.kind.notNil, {
fileParse.kind
}, {
resolvedPathName.fileNameWithoutExtension
}).asSymbol;
}
{ Error("Unsupported file extension.").throw };
}
Expand Down

0 comments on commit e4ec543

Please sign in to comment.