Skip to content

Commit b4e2226

Browse files
committed
fixed small bug introduced in fe9d61d
1 parent f717e12 commit b4e2226

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/webpd-latest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ var Pd = module.exports = {
350350
return errorList.push([ err.message, err ])
351351
else throw err
352352
}
353-
354-
if (obj.type == 'array')
353+
354+
if (obj.type == 'array' && nodeData.data)
355355
obj.setData(new Float32Array(nodeData.data), true)
356356

357357
if (proto === 'pd' || proto === 'graph')

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ var Pd = module.exports = {
166166
return errorList.push([ err.message, err ])
167167
else throw err
168168
}
169-
170-
if (obj.type == 'array')
169+
170+
if (obj.type == 'array' && nodeData.data)
171171
obj.setData(new Float32Array(nodeData.data), true)
172172

173173
if (proto === 'pd' || proto === 'graph')

0 commit comments

Comments
 (0)