Merge pull request #1534 from Matter-and-Form/texturefile-int-name-fix

[PLY] fix for TextureFile with number in file name
pull/1529/head^2
Kim Kulling 2017-11-03 19:10:01 +01:00 committed by GitHub
commit 56674de1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -381,6 +381,11 @@ bool PLY::Element::ParseElement(IOStreamBuffer<char> &streamBuffer, std::vector<
{ {
char* endPos = &buffer[0] + (strlen(&buffer[0]) - 1); char* endPos = &buffer[0] + (strlen(&buffer[0]) - 1);
pOut->szName = std::string(&buffer[0], endPos); pOut->szName = std::string(&buffer[0], endPos);
// go to the next line
PLY::DOM::SkipSpacesAndLineEnd(buffer);
return true;
} }
//parse the number of occurrences of this element //parse the number of occurrences of this element