From: gka Date: Thu, 1 Oct 2020 09:29:11 +0000 (+0300) Subject: 0031812: IGES import - NURBS patches lost in the import process - 720 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=72456673fcea5b0dd87e8a66616759ac8064b056;p=occt-copy.git 0031812: IGES import - NURBS patches lost in the import process - 720 Correction for case invalid color definition to avoid considering an entity that has a number corresponding to the color field as erroneous if entity is not a color entity. --- diff --git a/src/IGESData/IGESData_IGESReaderTool.cxx b/src/IGESData/IGESData_IGESReaderTool.cxx index dd8f65afd2..6e6e9989aa 100644 --- a/src/IGESData/IGESData_IGESReaderTool.cxx +++ b/src/IGESData/IGESData_IGESReaderTool.cxx @@ -290,6 +290,8 @@ IGESData_IGESReaderTool::IGESData_IGESReaderTool if (v[14] < 0) { fieldent = GetCasted(IGESData_IGESEntity,IR->BoundEntity( (1-v[14])/2 )); Color = GetCasted(IGESData_ColorEntity, fieldent); + //an entity that is not a color entity and has a number corresponding + //to the color field should not be considered erroneous if (Color.IsNull()) { // Sending of message : Incorrect Color Number Message_Msg Msg34 ("XSTEP_34");