Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
add layer link section; layer link represented by array in psd;
for example:
1.
layer3 and layer1 are linked;
then the array is [1, 1, 0]
2 if there are more layer links
layer3 and layer1 are linked; layer4 and layer2 are linked;
then the array is [1, 2, 0, 1, 2]
3 if there are some group layer ,but not linked;
layer3 and layer1 are linked; layer4 and layer2 are linked;
then the array is [ 0, 1, 2, 0, 0, 1, 2 ];
yes, we find group layer create 2 element in the array; here, I call them groupStart and groupEnd;
4 if there are some group layer, and they are linked;
layer3 and layer1 are linked; layer4 and layer2 are linked; folder1 and layer5 are linked;
then the array is [ 3, 1, 2, 0, 3, 1, 2 ]; we find the groupStart is not zero, and the groupEnd also is zero;
Through the above,find:
same linked layers , they have same number, not zero;
group layer has two numbers, and the groupEnd always zero;
OK, through some processing we could get which layer are linked mutually