mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
possibility to create directories when saving new textures
This commit is contained in:
parent
1a4c349b52
commit
e5b9fbefb3
@ -334,6 +334,14 @@ void saveImage(
|
||||
PluginManager& pm = meshlab::pluginManagerInstance();
|
||||
IOPlugin *ioPlugin = pm.outputImagePlugin(extension);
|
||||
|
||||
std::cerr << "Path: " << fi.path().toStdString() << "\n";
|
||||
|
||||
if (!fi.path().isEmpty()){
|
||||
if (!QDir(fi.path()).exists()){
|
||||
QDir().mkdir(fi.path());
|
||||
}
|
||||
}
|
||||
|
||||
if (ioPlugin == nullptr)
|
||||
throw MLException(
|
||||
"Image " + filename + " cannot be saved. Your MeshLab version "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user