mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-04 02:30:39 +08:00
Disallow import of 3mf without mesh, which are not produced by PrusaSlic3r
This commit is contained in:
parent
1696e0447b
commit
99a08efc9c
@ -1000,8 +1000,12 @@ namespace Slic3r {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// // fixes the min z of the model if negative
|
// We support our 3mf contains only configuration without mesh,
|
||||||
// model.adjust_min_z();
|
// others MUST contain mesh (triangles and vertices).
|
||||||
|
if (!m_prusaslicer_generator_version.has_value() && model.objects.empty()) {
|
||||||
|
const std::string msg = (boost::format(_u8L("3mf File (\"%1%\") do not contain valid mesh.")) % filename).str();
|
||||||
|
throw Slic3r::RuntimeError(msg);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user