mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00:35 +05:00
Correct implementation of GetImportFormatName() function to work properly for appropriate import formats
This commit is contained in:
parent
52e50564f3
commit
4385fae909
@ -90,13 +90,7 @@
|
||||
static TCollection_AsciiString GetImportFormatName
|
||||
(const TCollection_AsciiString& theFormatName)
|
||||
{
|
||||
Standard_Integer aLastInd = 4;
|
||||
|
||||
if (theFormatName.Search("STL") == 1) {
|
||||
aLastInd = 3;
|
||||
}
|
||||
|
||||
return theFormatName.SubString(1, aLastInd);
|
||||
return theFormatName.Token("_");
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user