mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 08:13:14 +00:00
Refactor misc functions into new misc module for better organisation.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
@misc
|
||||
Feature: Misc
|
||||
|
||||
Scenario: Set override colour
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
When I press "bim.set_override_colour"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Set viewport shadow from sun
|
||||
Given an empty IFC project
|
||||
And I add a sun
|
||||
And the object "Sun" is selected
|
||||
When I press "bim.set_viewport_shadow_from_sun"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Snap spaces together
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
And additionally the object "Cube.001" is selected
|
||||
When I press "bim.snap_spaces_together"
|
||||
Then nothing happens
|
||||
@@ -78,6 +78,12 @@ def i_add_an_empty():
|
||||
bpy.ops.object.empty_add()
|
||||
|
||||
|
||||
@given("I add a sun")
|
||||
@when("I add an sun")
|
||||
def i_add_an_empty():
|
||||
bpy.ops.object.light_add(type="SUN")
|
||||
|
||||
|
||||
@given("I add a material")
|
||||
def i_add_a_material():
|
||||
bpy.context.active_object.active_material = bpy.data.materials.new("Material")
|
||||
|
||||
Reference in New Issue
Block a user