From: vro Date: Thu, 22 Mar 2012 05:06:16 +0000 (+0400) Subject: 0023023: VRML reader fails on attempt to read an attached WRL file X-Git-Tag: V6_5_3_beta1~18 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=c0a681bc51897b8157988b3863f2b22789fb720a;p=occt-copy.git 0023023: VRML reader fails on attempt to read an attached WRL file --- diff --git a/src/VrmlData/VrmlData_Geometry.cxx b/src/VrmlData/VrmlData_Geometry.cxx index 96485a1ce3..66ed70cd63 100755 --- a/src/VrmlData/VrmlData_Geometry.cxx +++ b/src/VrmlData/VrmlData_Geometry.cxx @@ -589,12 +589,10 @@ VrmlData_ErrorStatus VrmlData_TextureCoordinate::Read break; if (theBuffer.LinePtr[0] == ',') { theBuffer.LinePtr++; - continue; - } else if (theBuffer.LinePtr[0] == ']') // closing bracket + } else if (theBuffer.LinePtr[0] == ']') { // closing bracket theBuffer.LinePtr++; - else - aStatus = VrmlData_VrmlFormatError; - break; + break; + } } } if (OK(aStatus) && OK(aStatus, readBrace (theBuffer))) {