Closed arkhnchul closed 8 years ago
Thank you for finding this bug and for giving me the bug fix. I have implemented the first solution, with attributes checker. I have commited but I have not fully tested because I don't know how to create objects which are not solid.
for example, this file: it contains two solids and two objects from Assembly2 module (planeConstraint01 and planeConstraint01_), which have visibility but no transparency
I have opened the file but it does not show special objects because I don't have Assembly2 module (FreeCAD 0.14 on Debian Jessie). If you test again this module with last commit, could you tell me if it ok ? Thanks a lot.
yeah, now it works as expected and ignore non-solid objects.
Ok, thank you, I close the issue.
when document have some objects which is "visible" in tree but aren't actually solids or so (constraints from Assembly2 as example), method save_initial_objects from treepanel.py fails with "object has no attribute 'Transparency'" stacktrace and workbench fails to activate. Preliminary check with " if hasattr(obj.ViewObject,"transparency"): " (or maybe trying/catching exception, i'm not pythonic at all) solves this.