Skip to content

Commit

Permalink
[qtAV] SequenceCache: do not reorder sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
mugulmd committed Jul 11, 2023
1 parent 68e9807 commit 86ac404
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/qtAliceVision/SequenceCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ void SequenceCache::setSequence(const QVariantList& paths)
}
}

// Sort sequence by filepaths
std::sort(_sequence.begin(), _sequence.end(), [](const FrameData& lhs, const FrameData& rhs) {
return lhs.path < rhs.path;
});

// Assign frame numbers
for (size_t i = 0; i < _sequence.size(); ++i)
{
Expand Down
2 changes: 1 addition & 1 deletion src/qtAliceVision/SequenceCache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class SequenceCache : public QObject, public ImageServer {
/**
* @brief Set the current image sequence.
* @param[in] paths unordered list of image filepaths
* @note this method takes care of sorting and initializing the sequence
* @note the sequence order will not be changed
*/
void setSequence(const QVariantList& paths);

Expand Down

0 comments on commit 86ac404

Please sign in to comment.