Browse Source

Fix a bug in the Illustrator script

It got mad if a layer was missing.
master
Fen Dweller 3 years ago
parent
commit
25b31ea330
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      scripts/illustrator.jsx

+ 4
- 0
scripts/illustrator.jsx View File

@@ -49,6 +49,10 @@ for (var i=0; i<settings.length; i++) {
}
}

if (layer === null) {
continue;
}

var raster = layer.pageItems[0]
var pluginRef = raster.trace()
var trace = pluginRef.tracing


Loading…
Cancel
Save