浏览代码

Correction on Collada parser missing textures when the image is in CDATA
<image id="image-1404706686">
<init_from><![CDATA[textures\burgundy.png]]></init_from>
</image>

Arkeon 7 年之前
父节点
当前提交
f235646030
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/ColladaParser.cpp

+ 1 - 1
code/ColladaParser.cpp

@@ -3106,7 +3106,7 @@ const char* ColladaParser::TestTextContent()
     // read contents of the element
     // read contents of the element
     if( !mReader->read() )
     if( !mReader->read() )
         return NULL;
         return NULL;
-    if( mReader->getNodeType() != irr::io::EXN_TEXT)
+    if( mReader->getNodeType() != irr::io::EXN_TEXT && mReader->getNodeType() != irr::io::EXN_CDATA)
         return NULL;
         return NULL;
 
 
     // skip leading whitespace
     // skip leading whitespace