From 77a00c6d275baed3e98257f0c8169cdc87e44776 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Mon, 15 Mar 2010 23:45:19 +0000 Subject: [PATCH] [2970566] dxf import bug/limitation. Thanks to fgasnier for the hint. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@609 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/DXFLoader.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/code/DXFLoader.cpp b/code/DXFLoader.cpp index be0724910..0e5707d76 100644 --- a/code/DXFLoader.cpp +++ b/code/DXFLoader.cpp @@ -327,20 +327,13 @@ bool DXFImporter::ParseEntities() while (GetNextToken()) { if (!groupCode) { if (!::strcmp(cursor,"3DFACE") || !::strcmp(cursor,"LINE") || !::strcmp(cursor,"3DLINE")){ - if (!Parse3DFace()) { - return false; - } - else { - bRepeat = true; - } + //http://sourceforge.net/tracker/index.php?func=detail&aid=2970566&group_id=226462&atid=1067632 + Parse3DFace(); + bRepeat = true; } if (!::strcmp(cursor,"POLYLINE") || !::strcmp(cursor,"LWPOLYLINE")){ - if (!ParsePolyLine()) { - return false; - } - else { - bRepeat = true; - } + ParsePolyLine(); + bRepeat = true; } if (!::strcmp(cursor,"ENDSEC")) { return true;