Skip to content

Conversation

@naoto0804
Copy link

This PR is to fix #299.
There is sometimes a layer in PSD with stroke but without vector_mask, which result in an error when attributes of layer.vector_mask are accessed in layer.composite(). We just skip rendering strokes when the layer has no vector mask.

@naoto0804 naoto0804 changed the title Check if a layer has vector mask in advance Check if a layer has vector mask before rendering strokes Apr 14, 2022
@naoto0804
Copy link
Author

Now the PSD file attached in #299 is rendered without errors
Forme_783

@kyamagu kyamagu merged commit 5e2e501 into psd-tools:master Apr 15, 2022
@kyamagu kyamagu mentioned this pull request Apr 15, 2022
@naoto0804 naoto0804 deleted the disable-rendering-stroke-wo-vectormask branch April 15, 2022 05:58
@kyamagu kyamagu mentioned this pull request Apr 15, 2022
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.

composite() error on ex-vector layer

2 participants