mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 08:09:39 +00:00
Don't allow empty URIs as two or more textures could stomp on eachother
This commit is contained in:
parent
a623f22dac
commit
22bdd2b7a0
@ -331,6 +331,10 @@ void loadMeshPrimitive(
|
||||
QImage qimg(img.image.data(), img.width, img.height, QImage::Format_RGBA8888);
|
||||
if (!qimg.isNull()){
|
||||
QImage copy = qimg.copy();
|
||||
if (uri.empty())
|
||||
{
|
||||
uri = "texture_" + std::to_string(textureImg);
|
||||
}
|
||||
m.addTexture(uri, copy);
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user