Load image directly
Co-authored-by: Celtic Minstrel <CelticMinstrel@users.noreply.github.com>
This commit is contained in:
@@ -4249,9 +4249,7 @@ public:
|
|||||||
}
|
}
|
||||||
// Get image data from sheets not in memory
|
// Get image data from sheets not in memory
|
||||||
else{
|
else{
|
||||||
sf::Texture texture;
|
sheets[idx].loadFromFile((pic_dir/("sheet" + std::to_string(idx) + ".png")).string());
|
||||||
texture.loadFromFile((pic_dir/("sheet" + std::to_string(idx) + ".png")).string());
|
|
||||||
sheets[idx] = texture.copyToImage();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user