Refactor misc functions into new misc module for better organisation.

This commit is contained in:
Dion Moult
2021-10-18 11:21:49 +11:00
parent 8ed395a29f
commit a9a48bdd1d
13 changed files with 257 additions and 113 deletions
+6
View File
@@ -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")