From fd438cb8e001f4d3fc4684887340bda8df22033c Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Thu, 16 May 2024 22:52:16 +0300 Subject: [PATCH] VRML to XCAFDoc reader is only available in OCCT 7.7.0+ --- pcbnew/exporters/step/step_pcb_model.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/exporters/step/step_pcb_model.cpp b/pcbnew/exporters/step/step_pcb_model.cpp index 22caf772da..8de2317499 100644 --- a/pcbnew/exporters/step/step_pcb_model.cpp +++ b/pcbnew/exporters/step/step_pcb_model.cpp @@ -118,7 +118,10 @@ #include #include + +#if OCC_VERSION_HEX >= 0x070700 #include +#endif #include @@ -2682,6 +2685,7 @@ bool STEP_PCB_MODEL::readSTEP( Handle( TDocStd_Document )& doc, const char* fnam bool STEP_PCB_MODEL::readVRML( Handle( TDocStd_Document ) & doc, const char* fname ) { +#if OCC_VERSION_HEX >= 0x070700 VrmlAPI_CafReader reader; RWMesh_CoordinateSystemConverter conv; conv.SetInputLengthUnit( 2.54 ); @@ -2692,6 +2696,9 @@ bool STEP_PCB_MODEL::readVRML( Handle( TDocStd_Document ) & doc, const char* fna return false; return true; +#else + return false; +#endif }