[Bug] Creating Material with the same name crashes FreeCAD

A forum to discuss the implementation of a good Materials system in FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Bug] Creating Material with the same name crashes FreeCAD

Post by Kunda1 »

Was this issue ever fixed?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: [Bug] Creating Material with the same name crashes FreeCAD

Post by Syres »

Kunda1 wrote: Sat Oct 17, 2020 1:15 am Was this issue ever fixed?
Nope, I can PR my quick and dirty suggestion as @vince-ice has tested it successfully but I was hoping someone with better Python skills than I could have suggested something cleaner.

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22960 (Git)
Build type: Release
Branch: master
Hash: c5a4b01d2e4218bcc0eb6650337650a6c65ef0e4
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)
Post Reply