mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
restore lost code after a1d99b5
This commit is contained in:
@@ -910,11 +910,11 @@ class Loader(bonsai.core.tool.Loader):
|
|||||||
mesh.polygons.foreach_set("use_smooth", [0] * total_faces)
|
mesh.polygons.foreach_set("use_smooth", [0] * total_faces)
|
||||||
mesh.update()
|
mesh.update()
|
||||||
|
|
||||||
# TODO: geometry id is not always an int.
|
rep_str: str = geometry.id
|
||||||
rep_id = geometry.id
|
if "openings" not in rep_str:
|
||||||
if rep_id.isdigit():
|
rep_id = rep_str.split("-", 1)[0]
|
||||||
if (rep := tool.Ifc.get().by_id(int(rep_id))) and rep.is_a("IfcShapeRepresentation"):
|
rep = tool.Ifc.get().by_id(int(rep_id))
|
||||||
tool.Loader.load_indexed_colour_map(rep, mesh)
|
tool.Loader.load_indexed_colour_map(rep, mesh)
|
||||||
else:
|
else:
|
||||||
e = geometry.edges
|
e = geometry.edges
|
||||||
v = verts
|
v = verts
|
||||||
|
|||||||
Reference in New Issue
Block a user