Skip to content

[Synfig Studio] don't let inner layer be duplicated twice - #2050

Merged
ice0 merged 1 commit into
synfig:masterfrom
rodolforg:studio-app-dont-duplicate-group-inner-layer-twice
Feb 27, 2021
Merged

ice0 merged 1 commit into
synfig:masterfrom
rodolforg:studio-app-dont-duplicate-group-inner-layer-twice

Conversation

@rodolforg

Copy link
Copy Markdown
Contributor

If action LayerDuplicate has among the layers to be duplicated a
layer named "a" that is 'inside' of a group layer (pastecanvas)
named "g". In case of "g" is a layer included in the action layer
list too, don't duplicate the "a" twice, ie. the group and
its contents - including "a" - are duplicated, but "a" won't
be duplicated again.

It would clash the GUID of both "a" duplicates, and that leads
to crash.
A way to avoid it in a general way would be too troublesome :P
Many hierarchy levels and special GUIDs to handle.

Regular (and advanced) user normally won't need it, anyway.

Full description and minor discussion here:
https://forums.synfig.org/t/proposal-of-change-of-behavior-duplicating-both-group-and-an-inner-layer/11823

@rodolforg rodolforg added this to the v1.4.1 milestone Feb 27, 2021
If action LayerDuplicate has among the layers to be duplicated a
layer named "a" that is 'inside' of a group layer (pastecanvas)
named "g". In case of "g" is a layer included in the action layer
list too, don't duplicate the "a" twice, ie. the group and
its contents - including "a" - are duplicated, but "a" won't
be duplicated again.

It would clash the GUID of both "a" duplicates, and that leads
to crash.
A way to avoid it in a general way would be too troublesome :P
Many hierarchy levels and special GUIDs to handle.

Regular (and advanced) user normally won't need it, anyway.

Full description and minor discussion here:
https://forums.synfig.org/t/proposal-of-change-of-behavior-duplicating-both-group-and-an-inner-layer/11823
@rodolforg
rodolforg force-pushed the studio-app-dont-duplicate-group-inner-layer-twice branch from 330cf36 to de9535e Compare February 27, 2021 06:01
@rodolforg

Copy link
Copy Markdown
Contributor Author

fixed the test to reflect the new behavior

@ice0
ice0 merged commit c526bf2 into synfig:master Feb 27, 2021
@ice0

ice0 commented Feb 27, 2021

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

@ice0 ice0 mentioned this pull request Feb 28, 2021
ice0 added a commit to ice0/synfig that referenced this pull request Feb 28, 2021
If action LayerDuplicate has among the layers to be duplicated a
layer named "a" that is 'inside' of a group layer (pastecanvas)
named "g". In case of "g" is a layer included in the action layer
list too, don't duplicate the "a" twice, ie. the group and
its contents - including "a" - are duplicated, but "a" won't
be duplicated again.

It would clash the GUID of both "a" duplicates, and that leads
to crash.
A way to avoid it in a general way would be too troublesome :P
Many hierarchy levels and special GUIDs to handle.

Regular (and advanced) user normally won't need it, anyway.

Full description and minor discussion here:
https://forums.synfig.org/t/proposal-of-change-of-behavior-duplicating-both-group-and-an-inner-layer/11823

(cherry picked from commit c526bf2)
ice0 added a commit to ice0/synfig that referenced this pull request Feb 28, 2021
If action LayerDuplicate has among the layers to be duplicated a
layer named "a" that is 'inside' of a group layer (pastecanvas)
named "g". In case of "g" is a layer included in the action layer
list too, don't duplicate the "a" twice, ie. the group and
its contents - including "a" - are duplicated, but "a" won't
be duplicated again.

It would clash the GUID of both "a" duplicates, and that leads
to crash.
A way to avoid it in a general way would be too troublesome :P
Many hierarchy levels and special GUIDs to handle.

Regular (and advanced) user normally won't need it, anyway.

Full description and minor discussion here:
https://forums.synfig.org/t/proposal-of-change-of-behavior-duplicating-both-group-and-an-inner-layer/11823

(cherry picked from commit c526bf2)
morevnaproject pushed a commit that referenced this pull request Apr 20, 2021
If action LayerDuplicate has among the layers to be duplicated a
layer named "a" that is 'inside' of a group layer (pastecanvas)
named "g". In case of "g" is a layer included in the action layer
list too, don't duplicate the "a" twice, ie. the group and
its contents - including "a" - are duplicated, but "a" won't
be duplicated again.

It would clash the GUID of both "a" duplicates, and that leads
to crash.
A way to avoid it in a general way would be too troublesome :P
Many hierarchy levels and special GUIDs to handle.

Regular (and advanced) user normally won't need it, anyway.

Full description and minor discussion here:
https://forums.synfig.org/t/proposal-of-change-of-behavior-duplicating-both-group-and-an-inner-layer/11823

(cherry picked from commit c526bf2)
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
If action LayerDuplicate has among the layers to be duplicated a
layer named "a" that is 'inside' of a group layer (pastecanvas)
named "g". In case of "g" is a layer included in the action layer
list too, don't duplicate the "a" twice, ie. the group and
its contents - including "a" - are duplicated, but "a" won't
be duplicated again.

It would clash the GUID of both "a" duplicates, and that leads
to crash.
A way to avoid it in a general way would be too troublesome :P
Many hierarchy levels and special GUIDs to handle.

Regular (and advanced) user normally won't need it, anyway.

Full description and minor discussion here:
https://forums.synfig.org/t/proposal-of-change-of-behavior-duplicating-both-group-and-an-inner-layer/11823

(cherry picked from commit c526bf2)
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
If action LayerDuplicate has among the layers to be duplicated a
layer named "a" that is 'inside' of a group layer (pastecanvas)
named "g". In case of "g" is a layer included in the action layer
list too, don't duplicate the "a" twice, ie. the group and
its contents - including "a" - are duplicated, but "a" won't
be duplicated again.

It would clash the GUID of both "a" duplicates, and that leads
to crash.
A way to avoid it in a general way would be too troublesome :P
Many hierarchy levels and special GUIDs to handle.

Regular (and advanced) user normally won't need it, anyway.

Full description and minor discussion here:
https://forums.synfig.org/t/proposal-of-change-of-behavior-duplicating-both-group-and-an-inner-layer/11823

(cherry picked from commit c526bf2)
rodolforg added a commit to rodolforg/synfig that referenced this pull request Sep 18, 2021
This implements the behavior adopted for LayerDuplicate action
for Copy Layer too.

Based on PR synfig#2050 (commit c526bf2)

I changed some variable names for better reading and made them
consistent.
ice0 pushed a commit that referenced this pull request Sep 20, 2021
This implements the behavior adopted for LayerDuplicate action
for Copy Layer too.

Based on PR #2050 (commit c526bf2)

I changed some variable names for better reading and made them
consistent.
@rodolforg
rodolforg deleted the studio-app-dont-duplicate-group-inner-layer-twice branch October 26, 2021 00:24
@rodolforg rodolforg removed the Backport label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants