Skip to content

Conversation

@TomFevrier
Copy link

Issue

The script contains duplicate definitions for the unlockObject() function:

  • The first one is not recursive, but saves each locked object in an array to be relocked at the end of the script;
  • The second one is recursive, but doesn’t save the locked state, and it supersedes the first one.

As a result, unlocked layers and groups are not relocked when the script finishes running.

The second definition was introduced in version 0.115.2 in order to fix a rare error that occurred when the script attempts to hide special text blocks (ai2html-settings, ai2html-css) overlapping artboards, if one of their ancestors is locked. Parsing of special text blocks happens before layers and groups are unlocked.

Proposed fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant