Skip to content

Commit 8c9e89a

Browse files
dirkolbrichMoult
authored andcommitted
Bonsai - change add_grid operator namespace to bim
1 parent 868bb5c commit 8c9e89a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/bonsai/bonsai/bim/module/model/grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def add_object(self: "BIM_OT_add_object", context: bpy.types.Context) -> None:
8282

8383

8484
class BIM_OT_add_object(Operator, tool.Ifc.Operator):
85-
bl_idname = "mesh.add_grid"
85+
bl_idname = "bim.add_grid"
8686
bl_label = "Grid"
8787
bl_description = "Add IfcGrid."
8888
bl_options = {"REGISTER", "UNDO"}

src/bonsai/bonsai/bim/module/spatial/ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class BIM_PT_grids(Panel):
251251
bl_options = {"HEADER_LAYOUT_EXPAND"}
252252

253253
def draw(self, context):
254-
self.layout.row().operator("mesh.add_grid", icon="ADD", text="Add Grids")
254+
self.layout.row().operator("bim.add_grid", icon="ADD", text="Add Grids")
255255

256256
def draw_header(self, context):
257257
props = tool.Spatial.get_grid_props()

src/bonsai/test/bim/feature/model.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Scenario: Add one type from the Construction Type Browser
5757

5858
Scenario: Add grid
5959
Given an empty IFC project
60-
When I press "mesh.add_grid"
60+
When I press "bim.add_grid"
6161
Then the object "IfcGrid/Grid" is an "IfcGrid"
6262
And the object "IfcGridAxis/A" is an "IfcGridAxis"
6363
And the object "IfcGridAxis/B" is an "IfcGridAxis"

src/bonsai/test/bim/feature/project.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ Scenario: Export IFC - with moved object location synchronised
914914

915915
Scenario: Export IFC - with moved grid axis location synchronised
916916
Given an empty IFC project
917-
And I press "mesh.add_grid"
917+
And I press "bim.add_grid"
918918
When the object "IfcGridAxis/01" is moved to "1,0,0"
919919
And I save IFC project
920920
And I load previously saved IFC project

0 commit comments

Comments
 (0)