diff --git a/src/blenderbim/blenderbim/bim/module/model/__init__.py b/src/blenderbim/blenderbim/bim/module/model/__init__.py index f5505e68c5..8444b46fc1 100644 --- a/src/blenderbim/blenderbim/bim/module/model/__init__.py +++ b/src/blenderbim/blenderbim/bim/module/model/__init__.py @@ -143,7 +143,6 @@ classes = ( stair.EnableEditingStair, stair.RemoveStair, pie.OpenPieClass, - pie.PieUpdateContainer, pie.PieAddOpening, pie.VIEW3D_MT_PIE_bim, pie.VIEW3D_MT_PIE_bim_class, diff --git a/src/blenderbim/blenderbim/bim/module/model/pie.py b/src/blenderbim/blenderbim/bim/module/model/pie.py index 7c55265d81..fe3a0e151a 100644 --- a/src/blenderbim/blenderbim/bim/module/model/pie.py +++ b/src/blenderbim/blenderbim/bim/module/model/pie.py @@ -63,28 +63,6 @@ class PieAddOpening(bpy.types.Operator): return {"FINISHED"} -class PieUpdateContainer(bpy.types.Operator): - bl_idname = "bim.pie_update_container" - bl_label = "Update Spatial Container" - bl_options = {"REGISTER", "UNDO"} - - def execute(self, context): - return IfcStore.execute_ifc_operator(self, context) - - def _execute(self, context): - for obj in context.selected_objects: - if not obj.BIMObjectProperties.ifc_definition_id: - continue - for collection in obj.users_collection: - spatial_obj = collection.BIMCollectionProperties.obj - if spatial_obj and spatial_obj.BIMObjectProperties.ifc_definition_id: - blenderbim.core.spatial.assign_container( - tool.Ifc, tool.Collector, tool.Spatial, structure_obj=spatial_obj, element_obj=obj - ) - break - return {"FINISHED"} - - class VIEW3D_MT_PIE_bim(bpy.types.Menu): bl_label = "Geometry" @@ -93,7 +71,6 @@ class VIEW3D_MT_PIE_bim(bpy.types.Menu): pie.operator("bim.edit_object_placement") pie.operator("bim.update_representation").ifc_representation_class = "" pie.operator("bim.pie_add_opening") - pie.operator("bim.pie_update_container") pie.operator("bim.open_pie_class", text="Assign IFC Class") pie.operator("bim.aggregate_assign_object", text="Assign Aggregation") pie.operator("bim.aggregate_unassign_object", text="Unassign Aggregation") diff --git a/src/blenderbim/test/bim/feature/model.feature b/src/blenderbim/test/bim/feature/model.feature index 61deacda6e..7467d6af86 100644 --- a/src/blenderbim/test/bim/feature/model.feature +++ b/src/blenderbim/test/bim/feature/model.feature @@ -66,14 +66,6 @@ Scenario: Add grid And the object "IfcGridAxis/02" is an "IfcGridAxis" And the object "IfcGridAxis/03" is an "IfcGridAxis" -Scenario: Pie update container - Given an empty Blender session - And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')" - Then the object "IfcSlab/Slab" is in the collection "IfcBuildingStorey/Ground Floor" - When the object "IfcSlab/Slab" is placed in the collection "IfcBuildingStorey/Level 1" - And I press "bim.pie_update_container" - Then nothing happens - Scenario: Add a wall Given an empty IFC project And I load the demo construction library