Skip to content

Commit

Permalink
Merge pull request #3200 from martinvanzijl/issue-2945-allow-load-lev…
Browse files Browse the repository at this point in the history
…els-with-numeric-name

Allow loading levels/images with numeric names
  • Loading branch information
RodneyBaker committed Apr 2, 2020
2 parents 1303836 + 4e3671f commit 83e2a21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toonz/sources/common/tsystem/tfilepath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,8 @@ std::wstring TFilePath::getLevelNameW() const {
if (j == i || j - i == 1) // prova.tif o prova..tif
return str;

if (!checkForSeqNum(type) || !isNumbers(str, i, j)) return str;
if (!checkForSeqNum(type) || !isNumbers(str, i, j) ||
i == (int)std::wstring::npos) return str;
// prova.0001.tif
return str.erase(i + 1, j - i - 1);
}
Expand Down

0 comments on commit 83e2a21

Please sign in to comment.