View Revisions: Issue #4005

Summary 0004005: Material, self edited material cards could break importer and thus all material system
Revision 2019-06-06 08:07 by berndhahnebach
Description if the first card line is the following the import breaks ...

# This is a FreeCAD material-card file

related code: https://github.com/FreeCAD/FreeCAD/blob/39e748229e67fa93e924e355c0ce0897c870d756/src/Mod/Material/importFCMat.py#L117-L136

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16878 (Git)
Build type: Release
Branch: master
Hash: 50f91840d677ba77d3a938d9ac0aa73f6a9f12d4
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)

such a line above is added if the card is exported with the depretiated exporter ... https://github.com/FreeCAD/FreeCAD/blob/39e748229e67fa93e924e355c0ce0897c870d756/src/Mod/Material/Material.py#L108
Revision 2019-06-06 07:55 by berndhahnebach
Description if the first card line is the following the import breaks ...

# This is a FreeCAD material-card file

related code: https://github.com/FreeCAD/FreeCAD/blob/39e748229e67fa93e924e355c0ce0897c870d756/src/Mod/Material/importFCMat.py#L117-L136

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16878 (Git)
Build type: Release
Branch: master
Hash: 50f91840d677ba77d3a938d9ac0aa73f6a9f12d4
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)