mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 10:00:13 +00:00
wip
This commit is contained in:
parent
19ee73e7f7
commit
87cf37c847
@ -219,6 +219,10 @@ MODEL3D_FORMAT_TYPE fileType( const char* aFileName )
|
||||
format_type = FMT_IGES;
|
||||
break;
|
||||
}
|
||||
|
||||
// Only a comment (starting by "/*") is allowed as header
|
||||
if( strncmp( iline, "/*", 2 ) != 0 ) // not a comment
|
||||
break;
|
||||
}
|
||||
|
||||
CLOSE_STREAM( ifile );
|
||||
|
@ -328,6 +328,10 @@ FormatType fileType( const char* aFileName )
|
||||
// to load it.
|
||||
if( iline[72] == 'S' && ( iline[80] == 0 || iline[80] == 13 || iline[80] == 10 ) )
|
||||
return FMT_IGES;
|
||||
|
||||
// Only a comment (starting by "/*") is allowed as header
|
||||
if( strncmp( iline, "/*", 2 ) != 0 ) // not a comment
|
||||
break;
|
||||
}
|
||||
|
||||
return FMT_NONE;
|
||||
|
Loading…
Reference in New Issue
Block a user