After Re-Importing all Styles are Transparent
Hi,
somehow when reimporting an IFC file, all materials (better said styles, because there are no Materials assigned to the objects) they come back in Transparent. The issue is easy to be fixed. Simply go to the viewport Display change the A value to 1 and then click "Update Sytle Colours". Nevertheless this needs to be done for every object and material in the file which is not what is desired. Does some have an idea why this is happening and how could I solve this issue quickly?
Best Regards,
Carlos
Tagged:
Comments
I managed a quick and dirty solution. I just open the IFC in a Text Editor and replaced using regex. So that a line looking like:
would become:
The Regex that I used:
Search for:
RENDERING(.*),1.(.*).NOTDEFINED.
Replace with:
RENDERING$1,\$$2.FLAT.
Nevertheless I believe it's Bug somewhere. Or probably a feature to let some vendors know that they don't do Materials properly.
Fixed :) https://github.com/IfcOpenShell/IfcOpenShell/commit/d751ee99950f855a76b30d6ba607aaae466c699b
Dude, thank you very much. You saved the day.