Create low poly leaves function
This commit is contained in:
@@ -70,6 +70,10 @@ def buildTree():
|
|||||||
# increase the counter
|
# increase the counter
|
||||||
counter += 1
|
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.
|
# Function to add a material to the selected object.
|
||||||
def assignMaterial(object, material):
|
def assignMaterial(object, material):
|
||||||
if object and object.data:
|
if object and object.data:
|
||||||
|
Reference in New Issue
Block a user