Create low poly leaves function

This commit is contained in:
CJSatnarine
2023-12-31 14:56:57 -05:00
parent 62bdd2b431
commit cc10232c0a

View File

@@ -70,6 +70,10 @@ def buildTree():
# increase the counter
counter += 1
# Function to make the low poly leaves for the tree.
def createLowPolyLeaves(size, xPosition, yPosition, zPosition):
bpy.ops.mesh.primitive_cube_add(size = size, location = (xPosition, yPosition, zPosition))
# Function to add a material to the selected object.
def assignMaterial(object, material):
if object and object.data: