material editor

A forum to discuss the implementation of a good Materials system in FreeCAD
User avatar
kkremitzki
Posts: 1088
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: material editor

Postby kkremitzki » Wed Aug 01, 2018 12:42 am

yorik wrote:
Tue Jul 31, 2018 7:05 pm
The crash is probably due to the expat bug on debian-based systems. Everything that uses xml in python crashes. But @kkremitzki is working on this I think... I propose to postpone to merge your PR until we know a bit more from him because otherwise it will make the mat editor unusable for a large portion of users...
Indeed, the proper approach is to backport coin for the fix, but unfortunately the state of the coin3 source package is a bit weird right now in that somehow, the version which is currently in Debian fails to build outright for reasons that seem like they should have prevented the package from getting uploaded in the first place. But once I've gotten that resolved, I'll have something that I can upload to the PPA, but I'll also need to get in touch with someone on the Ubuntu side of things to get it backported there as well. So, in essence, things are still a bit TBD.
Like my FreeCAD work? I'd appreciate any level of support via Patreon! Read more about what I do at my blog.
User avatar
bernd
Posts: 6287
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: material editor

Postby bernd » Sun Aug 19, 2018 7:03 pm

damian wrote:
Mon Jul 23, 2018 5:21 pm
/home/damian/freecad/src/Mod/Material/MatPropDict.xml
If we only have problems with xml, why should we use it? It is not even human readable (at least not easy). We could just use a python dict like we do ATM ... https://github.com/FreeCAD/FreeCAD/blob ... #L103-L165
damian
Posts: 569
Joined: Sun May 31, 2015 6:16 pm

Re: material editor

Postby damian » Sun Aug 19, 2018 7:44 pm

Because of the crash with the 'accept' and 'reject' buttons is previous to introduce the xml file. They also crashed with the original tuple.
I suppose that it's possible to do something with the methods accept and reject, but I don't know what.
I have other model-view working very well, in the task panel and the buttons with getStandardButtons(self) ...