You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
File corruption: Copy-paste layers with exported values from one file to another #1393
There is a very common situation when user can get his file corrupted by simply copy-pasting layers from one file to another. This happens if layer contains exported values (note that bones are exported values too!).
Steps to reproduce this situation:
Launch Synfig and create new file.
Create a simple Circle Layer.
Select Circle Layer, right-click its Radius parameter and select "Export".
Enter name for exported value, i.e. "test". Click Export.
Save file as "file1.sifz"
Hit Ctl+C to copy circle layer to clipboard.
Create a new file in other tab.
Hit Ctrl+V to paste circle from clipboard. Circle will appear on workspace. Notice, that layer is copied, but it is still references exported value from "file1.sifz"
Save file as "file2.sifz"
Quit Synfig.
Now remove (or rename) "file1.sifz".
Launch Synfig and try to open "file2.sifz".
Error:
@rodolforg@ice0@FirasH I think this is a top-priority issue to solve for next stable release (1.4.1 or 1.6.0).
What should be done here:
Change how Synfig deal with pasting layers when layer has exported values.
Change how Synfig handles situations with broken links to exported values in external documents.
Hello, I would like to show you an error that has to do with the topic. Here I present a video and two example files of how bones made are corrupted when copied to another file.
I suggest to split this issue into multiple easy steps.
When "paste" command is invoked - check if pasted data references any exported elements. If yes - then display warning message in console.
Replace warning in console with a dialog box, which shows a message: "The pasted data contains layers, which still reference exported values from original files. That means your current file will depend on original file and might become unreadable if you delete original file. Do you still want to paste? [Yes] [No]"
Improve warning dialog - display a list of exported values, which are referenced by pasted layers.
I think those 3 steps are easy enough to start on gradually solving this issue. I can provide further steps later, if needed. ^__^
I started to work on this issue today, and then it raised me a doubt:
What if an exported value node has links for other exported valuenodes.
I just list the 'top' valuenode?
Example: I have a skeleton layer and one of its bones is exported. The origin of this exported bone is exported too.
When I copy'n paste this layer, I warn about the bone export only, or both valuenodes?
Activity
morevnaproject commentedon Apr 30, 2020
Broken files reported by users regularly.
Examples: #786, #1387
morevnaproject commentedon Apr 30, 2020
I think (1) should be a scope of this issue. (2) should be submitted a separate issue.
Proposal for fixing synfig/synfig#1393
morevnaproject commentedon Apr 30, 2020
Here is my proposal for solving this - https://synfig-docs-dev.readthedocs.io/en/latest/projects/copy-paste-exported-values.html
Gilraiser commentedon May 21, 2020
Hello, I would like to show you an error that has to do with the topic. Here I present a video and two example files of how bones made are corrupted when copied to another file.
Original file:
example-01.sif.zip
Copied file:
example-02.sifz.zip
Video with the demonstration:
https://www.youtube.com/watch?v=aTBuhxQpS1c&feature=youtu.be
I hope the information is useful. Thank you
rodolforg commentedon May 22, 2020
@Gilraiser Sadly a long-time known issue #453
I'm trying to investigate it, but I'm confuse how skeletons work in Synfig ;)
Gilraiser commentedon May 22, 2020
I wish I could help more. I know it must be very complex. Thank you.
morevnaproject commentedon May 26, 2020
I suggest to split this issue into multiple easy steps.
I think those 3 steps are easy enough to start on gradually solving this issue. I can provide further steps later, if needed. ^__^
rodolforg commentedon Mar 28, 2021
I started to work on this issue today, and then it raised me a doubt:
What if an exported value node has links for other exported valuenodes.
I just list the 'top' valuenode?
Example: I have a skeleton layer and one of its bones is exported. The origin of this exported bone is exported too.
When I copy'n paste this layer, I warn about the bone export only, or both valuenodes?
@morevnaproject
rodolforg commentedon Mar 29, 2021
The conflict is when there are two different types of valuenode, right? Like "Add" vs. "Scale"
ice0 commentedon Mar 30, 2021
@rodolforg Hi!
@morevnaproject got sick, he will answer as soon as he gets better.
19 remaining items
DRAFT - create paste dialog - fix synfig#1393
add View Canvas External Dependencies dialog
add View Canvas External Dependencies dialog
add View Canvas External Dependencies dialog
add Show Canvas External Dependencies dialog
add Show Canvas External Dependencies dialog
feat: add Show Canvas External Dependencies dialog
feat: add Show Canvas External Dependencies dialog
feat: add Show Canvas External Dependencies dialog (#2472)
DRAFT - create paste dialog - fix synfig#1393
DRAFT - create paste dialog - fix synfig#1393
DRAFT - create paste dialog - fix synfig#1393
DRAFT - create paste dialog - fix synfig#1393