2
0
Эх сурвалжийг харах

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

[PLY] fix for TextureFile with number in file name
Kim Kulling 7 жил өмнө
parent
commit
56674de1d8
1 өөрчлөгдсөн 6 нэмэгдсэн , 1 устгасан
  1. 6 1
      code/PlyParser.cpp

+ 6 - 1
code/PlyParser.cpp

@@ -381,6 +381,11 @@ bool PLY::Element::ParseElement(IOStreamBuffer<char> &streamBuffer, std::vector<
   {
     char* endPos = &buffer[0] + (strlen(&buffer[0]) - 1);
     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
@@ -933,7 +938,7 @@ bool PLY::PropertyInstance::ParseValue(const char* &pCur,
 {
   ai_assert(NULL != pCur);
   ai_assert(NULL != out);
-  
+
   //calc element size
   bool ret = true;
   switch (eType)