Flattening tracks sometimes splits contiguous clips into segments #1635
Labels
bug
A problem, flaw, or broken functionality.
good first issue
If you're looking for a way to contribute, but not sure where to start. This is a good first issue.
help wanted
We're looking for help from the community - you're weclome to volunteer!
Incorrect Functionality
If a track has adjacent Gaps, then items below the boundary between those Gaps are sliced in an unexpected way.
To Reproduce
Using this test file "bug_before_flatten_redacted.otio"...
flatten_bug_repro.zip
Run this command:
Expected Behavior
Clips below adjacent Gaps should not be segmented by the flatten operation. In the provided example,
Clip #1
should be left as-is.Screenshots
Here is a screenshot before flattening (note the highlighted Gap on the top track)
![Screenshot 2023-06-26 at 10 45 25 AM](https://private-user-images.githubusercontent.com/169599/248888285-832d50ac-0dc5-446d-bc49-3e01963477a8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1MTk1MzcsIm5iZiI6MTcxOTUxOTIzNywicGF0aCI6Ii8xNjk1OTkvMjQ4ODg4Mjg1LTgzMmQ1MGFjLTBkYzUtNDQ2ZC1iYzQ5LTNlMDE5NjM0NzdhOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyN1QyMDEzNTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMTljYjBlYjZiZWQzZTg5MTVhNjVkMjZkMDRiN2MyNWNjYzI1NGRmNzdiNWE3NTBhNzUzOGE5ZTNmYTYxMzQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.lB5NNJsaVnW41kGLvAmlgHTb12PZD4zCej3pH-7K0_I)
Here is the result after flattening (note that
![Screenshot 2023-06-26 at 10 45 38 AM](https://private-user-images.githubusercontent.com/169599/248888491-5576d951-fa80-469d-ad7b-f8fda50e4d03.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1MTk1MzcsIm5iZiI6MTcxOTUxOTIzNywicGF0aCI6Ii8xNjk1OTkvMjQ4ODg4NDkxLTU1NzZkOTUxLWZhODAtNDY5ZC1hZDdiLWY4ZmRhNTBlNGQwMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyN1QyMDEzNTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NWJjZjM1NWUzZTczZWM1ZWYyNWUzYmU3NzU4Zjg5NTBlYTMxMDY3MGQ4ZDJlMjRiMTJjNTY4NDk0OWEzNGQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.cd8IYvjw_Ba_XQM3LriApXwUEbqwsyq1OW9FpRzqEBs)
Clip #1
has been split in two)The text was updated successfully, but these errors were encountered: