Skip to content

Commit e561aa1

Browse files
committed
Fixed a null bug, when opt parameter is undefined
1 parent 036bc66 commit e561aa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/functionNode_webgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var functionNode_webgl = (function() {
3939
function functionNode_webgl( inNode, _opt ) {
4040
gpu = inNode.gpu;
4141
opt = _opt;
42-
if (opt.debug) {
42+
if (opt && opt.debug) {
4343
console.log(inNode);
4444
}
4545
jsFunctionString = inNode.jsFunctionString;

0 commit comments

Comments
 (0)