STLLoader: mak functions local.
parent
f2c2bc6945
commit
ca6296f609
|
@ -74,7 +74,7 @@ static const aiImporterDesc desc = {
|
||||||
// 1) 80 byte header
|
// 1) 80 byte header
|
||||||
// 2) 4 byte face count
|
// 2) 4 byte face count
|
||||||
// 3) 50 bytes per face
|
// 3) 50 bytes per face
|
||||||
bool IsBinarySTL(const char* buffer, unsigned int fileSize) {
|
static bool IsBinarySTL(const char* buffer, unsigned int fileSize) {
|
||||||
if( fileSize < 84 ) {
|
if( fileSize < 84 ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ bool IsBinarySTL(const char* buffer, unsigned int fileSize) {
|
||||||
// An ascii STL buffer will begin with "solid NAME", where NAME is optional.
|
// An ascii STL buffer will begin with "solid NAME", where NAME is optional.
|
||||||
// Note: The "solid NAME" check is necessary, but not sufficient, to determine
|
// Note: The "solid NAME" check is necessary, but not sufficient, to determine
|
||||||
// if the buffer is ASCII; a binary header could also begin with "solid NAME".
|
// if the buffer is ASCII; a binary header could also begin with "solid NAME".
|
||||||
bool IsAsciiSTL(const char* buffer, unsigned int fileSize) {
|
static bool IsAsciiSTL(const char* buffer, unsigned int fileSize) {
|
||||||
if (IsBinarySTL(buffer, fileSize))
|
if (IsBinarySTL(buffer, fileSize))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue