mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Raise an error when the option --use-element-hierarchy is used with a file different of .dae
This commit is contained in:
@@ -508,6 +508,14 @@ int main(int argc, char** argv)
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (serializer->settings().get(SerializerSettings::USE_ELEMENT_HIERARCHY) && output_extension != ".dae")
|
||||||
|
{
|
||||||
|
Logger::Error("--user-element-hierarchy can be used only with .dae output.");
|
||||||
|
write_log();
|
||||||
|
print_usage();
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
const bool is_tesselated = serializer->isTesselated(); // isTesselated() doesn't change at run-time
|
const bool is_tesselated = serializer->isTesselated(); // isTesselated() doesn't change at run-time
|
||||||
if (!is_tesselated) {
|
if (!is_tesselated) {
|
||||||
if (weld_vertices) {
|
if (weld_vertices) {
|
||||||
|
|||||||
Reference in New Issue
Block a user