mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
Bonsai - change add_grid operator namespace to bim
This commit is contained in:
@@ -82,7 +82,7 @@ def add_object(self: "BIM_OT_add_object", context: bpy.types.Context) -> None:
|
||||
|
||||
|
||||
class BIM_OT_add_object(Operator, tool.Ifc.Operator):
|
||||
bl_idname = "mesh.add_grid"
|
||||
bl_idname = "bim.add_grid"
|
||||
bl_label = "Grid"
|
||||
bl_description = "Add IfcGrid."
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
|
||||
@@ -251,7 +251,7 @@ class BIM_PT_grids(Panel):
|
||||
bl_options = {"HEADER_LAYOUT_EXPAND"}
|
||||
|
||||
def draw(self, context):
|
||||
self.layout.row().operator("mesh.add_grid", icon="ADD", text="Add Grids")
|
||||
self.layout.row().operator("bim.add_grid", icon="ADD", text="Add Grids")
|
||||
|
||||
def draw_header(self, context):
|
||||
props = tool.Spatial.get_grid_props()
|
||||
|
||||
@@ -57,7 +57,7 @@ Scenario: Add one type from the Construction Type Browser
|
||||
|
||||
Scenario: Add grid
|
||||
Given an empty IFC project
|
||||
When I press "mesh.add_grid"
|
||||
When I press "bim.add_grid"
|
||||
Then the object "IfcGrid/Grid" is an "IfcGrid"
|
||||
And the object "IfcGridAxis/A" is an "IfcGridAxis"
|
||||
And the object "IfcGridAxis/B" is an "IfcGridAxis"
|
||||
|
||||
@@ -914,7 +914,7 @@ Scenario: Export IFC - with moved object location synchronised
|
||||
|
||||
Scenario: Export IFC - with moved grid axis location synchronised
|
||||
Given an empty IFC project
|
||||
And I press "mesh.add_grid"
|
||||
And I press "bim.add_grid"
|
||||
When the object "IfcGridAxis/01" is moved to "1,0,0"
|
||||
And I save IFC project
|
||||
And I load previously saved IFC project
|
||||
|
||||
Reference in New Issue
Block a user