Skip to content

Commit

Permalink
Refactor: simpler logic for string search
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjian0 committed Jul 28, 2020
1 parent f514d23 commit 5623663
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion btools/core/multigroup/multigroup_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def create_multigroup_split(bm, face, prop):
h_faces = subdivide_face_horizontally(bm, face, h_widths)
# vertical split
size_y = min(size.y, wall_h - SPLIT_EPS) # prevent door frame from collapsing when maximized
if str(prop.components).find("d") == -1:

if "d" not in prop.components:
# XXX Only windows, use the y offset
v_width = [wall_h/2 + offset.y + size_y/2, wall_h/2 - offset.y - size_y/2]
else:
Expand Down

0 comments on commit 5623663

Please sign in to comment.