newsdev / ai2html

A script for Adobe Illustrator that converts your Illustrator artwork into an html page.
http://ai2html.org
Other
898 stars 146 forks source link

Locked ai file layers don't re-lock after running script #174

Open JSDiamond opened 2 weeks ago

JSDiamond commented 2 weeks ago

The ai2html.js script has two definitions of a function named unlockObject. The first adds to the objectsToRelock array, the second (which likely overwrites the first) does not.

Adding objectsToRelock.push(obj); to the second function results in the desired effect of re-locking ai file layers.