mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 12:09:51 +00:00
black .
This commit is contained in:
@@ -770,7 +770,10 @@ class AddSlabFromWall(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
walls = tool.Model.get_connected_walls(bpy.context.selected_objects)
|
walls = tool.Model.get_connected_walls(bpy.context.selected_objects)
|
||||||
if not walls:
|
if not walls:
|
||||||
self.report({"WARNING"}, "Please select a closed loop of walls, or deselect the walls to add a slab using the polyline tool.")
|
self.report(
|
||||||
|
{"WARNING"},
|
||||||
|
"Please select a closed loop of walls, or deselect the walls to add a slab using the polyline tool.",
|
||||||
|
)
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
DumbSlabGenerator(self.relating_type).generate("WALLS")
|
DumbSlabGenerator(self.relating_type).generate("WALLS")
|
||||||
|
|||||||
@@ -673,8 +673,7 @@ class Model(bonsai.core.tool.Model):
|
|||||||
return axes
|
return axes
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_connected_walls(
|
def get_connected_walls(cls, walls: list[bpy.types.Object]) -> list[bpy.types.Object]:
|
||||||
cls, walls: list[bpy.types.Object]) -> list[bpy.types.Object]:
|
|
||||||
"""
|
"""
|
||||||
Loop through walls by retrieving the next connected wall using the connection path.
|
Loop through walls by retrieving the next connected wall using the connection path.
|
||||||
If the function encounters the first wall again, it will return the list of connected walls.
|
If the function encounters the first wall again, it will return the list of connected walls.
|
||||||
|
|||||||
Reference in New Issue
Block a user