Skip to content

Commit

Permalink
Fixed null placement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Apr 12, 2023
1 parent cec1d3a commit 75db008
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ifc_tools.py
Expand Up @@ -670,8 +670,10 @@ def set_geometry(obj, elem, ifcfile, cached=False):
obj.Shape = Part.makeBox(1, 1, 1)
# set coin representation
node, colors, placement = get_coin([elem], ifcfile, cached)
basenode.addChild(node)
obj.Placement = placement
if node:
basenode.addChild(node)
if placement:
obj.Placement = placement
set_colors(obj, colors)


Expand Down

0 comments on commit 75db008

Please sign in to comment.