Implement element-hierarchy setting in USD

This commit is contained in:
Thomas Krijnen
2024-06-29 14:16:07 +02:00
parent a92d51aeb1
commit c68dcba087
5 changed files with 113 additions and 37 deletions
+2 -2
View File
@@ -872,8 +872,8 @@ int main(int argc, char** argv) {
return EXIT_FAILURE;
}
if (geometry_settings.get<ifcopenshell::geometry::settings::UseElementHierarchy>().get() && output_extension != DAE) {
cerr_ << "[Error] --use-element-hierarchy can be used only with .dae output.\n";
if (geometry_settings.get<ifcopenshell::geometry::settings::UseElementHierarchy>().get() && output_extension != DAE && output_extension != USD) {
cerr_ << "[Error] --use-element-hierarchy can be used only with .dae or .usd output.\n";
/// @todo Lots of duplicate error-and-exit code.
write_log(!quiet);
print_usage();