Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix it to read multiple objectEffects #164

Merged
merged 3 commits into from
Jul 3, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix it to read multiple object effect
as info block id varies from 'lfx2' to 'lmfx' with multiple layer effect, add 'lmfx' to support it.
otherwise, objectEffects is skipped.
  • Loading branch information
sngjuk committed Jun 25, 2019
commit 372251b96c634aa6461d66dbdb6284b6058738a6
2 changes: 1 addition & 1 deletion lib/psd/layer_info/object_effects.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ LayerInfo = require '../layer_info.coffee'
Descriptor = require '../descriptor.coffee'

module.exports = class ObjectEffects extends LayerInfo
@shouldParse: (key) -> key is 'lfx2'
@shouldParse: (key) -> key is 'lfx2' or 'lmfx'

parse: ->
@file.seek 8, true
Expand Down