← Back to team overview

kicad-developers team mailing list archive

[PATCH] Fix IDF Export bug for items under KISYS3DMOD

 

This patch fixes the issue reported by Chris: IDF component models are not
loaded when they are under a path specified by KISYS3DMOD.

- Cirilo
=== modified file 'pcbnew/exporters/export_idf.cpp'
--- pcbnew/exporters/export_idf.cpp	2015-01-05 21:51:47 +0000
+++ pcbnew/exporters/export_idf.cpp	2015-01-07 20:52:07 +0000
@@ -378,7 +378,7 @@
 
         IDF3_COMP_OUTLINE* outline;
 
-        outline = aIDFBoard.GetComponentOutline( modfile->GetShape3DName() );
+        outline = aIDFBoard.GetComponentOutline( modfile->GetShape3DFullFilename() );
 
         if( !outline )
             throw( std::runtime_error( aIDFBoard.GetError() ) );