Skip to content

Commit

Permalink
Fixed issue where image layer images cannot be loaded from Qt resourc…
Browse files Browse the repository at this point in the history
…e files (#2711)

Closes #2700
  • Loading branch information
obeezzy authored and bjorn committed Jan 7, 2020
1 parent 34a9791 commit eee6486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libtiled/imagelayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bool ImageLayer::loadFromImage(const QImage &image, const QString &source)

bool ImageLayer::loadFromImage(const QUrl &url)
{
return loadFromImage(ImageCache::loadPixmap(url.toLocalFile()), url);
return loadFromImage(ImageCache::loadPixmap(Tiled::urlToLocalFileOrQrc(url)), url);
}

bool ImageLayer::loadFromImage(const ImageReference &image)
Expand Down

0 comments on commit eee6486

Please sign in to comment.