mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Refactor misc functions into new misc module for better organisation.
This commit is contained in:
@@ -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