From c0a681bc51897b8157988b3863f2b22789fb720a Mon Sep 17 00:00:00 2001 From: vro Date: Thu, 22 Mar 2012 09:06:16 +0400 Subject: [PATCH] 0023023: VRML reader fails on attempt to read an attached WRL file --- src/VrmlData/VrmlData_Geometry.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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))) {