Skip to content

Commit 9a9422b

Browse files
committed
Use ASCII temp name for DAE on nix as well
1 parent 0ae1c90 commit 9a9422b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ifcconvert/IfcConvert.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,10 @@ int main(int argc, char** argv) {
569569

570570
#ifdef _MSC_VER
571571
if (output_extension == DAE || output_extension == STP || output_extension == IGS) {
572-
// These serializers do not support opening unicode paths on Windows. Therefore
572+
#else
573+
if (output_extension == DAE) {
574+
#endif
575+
// These serializers do not support opening unicode paths. Therefore
573576
// a random temp file is generated using only ASCII characters instead.
574577
std::random_device rng;
575578
std::uniform_int_distribution<int> index_dist(L'A', L'Z');
@@ -579,7 +582,6 @@ int main(int argc, char** argv) {
579582
}
580583
output_temp_filename += L".tmp";
581584
}
582-
#endif
583585

584586
SerializerSettings settings;
585587
/// @todo Make APPLY_DEFAULT_MATERIALS configurable? Quickly tested setting this to false and using obj exporter caused the program to crash and burn.

0 commit comments

Comments
 (0)