Repository navigation
[Synfig Studio] Fix action LayerDuplicate with layers "duplicate" o.O - #1971
Conversation
|
👉 View analysis in DeepCode’s Dashboard | Configure the bot |
6c00d3d to
bdbc986
Compare
|
And maybe this is the way to properly solve this #453 |
b3c5efd to
667ae45
Compare
|
I think we should backport it. By the way, the test file will fail at last test: it's the crash I reported recently #1983 This problem exists since 1.3.12 |
|
@ice0 do you know why MacOS 11.0 action keeps failing? |
|
I just found out that the Paste (layer) command (available in LayerActionManager) code is almost a "copy'n-paste" of LayerDuplicate code. So we need to fix it there too. Or, even better, avoid this code duplication (oh my, so many 'duplicate' words) |
Looks like GitHub problem: actions/runner-images#1814 (comment) |
Agree! |
667ae45 to
63347b7
Compare
Ok, so I'll try to discover what could I do to avoid the duplication… lol |
|
@ice0 in another PR or this one? (I still didn't start to work on this copy'n paste stuff) |
I think better to do it in another PR, so less changes need to be backported. |
The way it was: user was unable to add two Layer_Duplicate without an error message and only the first layer Index would be exported.
If user selected two layer_duplicate and activate action Duplicate, an error would be raised: it would try to export two valuenodes with same name.
instead of Index valuenode from original Layer_Duplicate. fix synfig#1921
Consider this scene tree: - group A - layer_duplicate A - group B - layer_duplicate B If user wants to duplicate both 'layer_duplicate A' and 'layer_duplicate B', but not the group, an error would raise.
63347b7 to
697e50f
Compare
|
Merged. Thank you! |
Two problems fixed:
And it implements a test for LayerDuplicate action (in
synfig-studio/testfolder). For Autotools, build and run it withmake check;)