From ccdcdf50714f03adcbabbe13e24f40420bb70819 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 25 Aug 2020 12:38:45 -0700 Subject: [PATCH] Deal with case-sensitive extensions Standards that specify differing case in the extension were designed by marketing departments and should be rejected on sight. But here we are. --- plugins/3d/oce/oce.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/3d/oce/oce.cpp b/plugins/3d/oce/oce.cpp index 272220f768..3bbd381c9b 100644 --- a/plugins/3d/oce/oce.cpp +++ b/plugins/3d/oce/oce.cpp @@ -74,13 +74,13 @@ static struct FILE_DATA FILE_DATA() { #ifdef _WIN32 - extensions = { "stp","step","stpZ","step.gz","igs","iges" }; - filters = { "STEP (*.stp;*.step;*.stpZ;*.step.gz)|*.stp;*.step;*.stpZ;*.step.gz", + extensions = { "stp","step","stpz","step.gz","igs","iges" }; + filters = { "STEP (*.stp;*.step;*.stpz;*.step.gz)|*.stp;*.step;*.stpz;*.step.gz", "IGES (*.igs;*.iges)|*.igs;*.iges" }; #else - extensions = { "stp","STP","stpZ","STPZ","step","STEP","step.gz","STEP.GZ","igs","IGS","iges","IGES" }; - filters = { "STEP (*.stp;*.STP;*.stpZ;*.STPZ;*.step;*.STEP;*.step.gz;*.STEP.GZ)" - "|*.stp;*.STP;*.stpZ;*.STPZ;*.step;*.STEP;*.step.gz;*.STEP.GZ", + extensions = { "stp","STP","stpZ",".stpz","STPZ","step","STEP","step.gz","STEP.GZ","igs","IGS","iges","IGES" }; + filters = { "STEP (*.stp;*.STP;*.stpZ;*.stpz;*.STPZ;*.step;*.STEP;*.step.gz;*.STEP.GZ)" + "|*.stp;*.STP;*.stpZ;*.stpz;*.STPZ;*.step;*.STEP;*.step.gz;*.STEP.GZ", "IGES (*.igs;*.IGS;*.iges;*.IGES)|*.igs;*.IGS;*.iges;*.IGES" }; #endif }