From cc10232c0a5090339ab2b4c6a0f625d7852aacfb Mon Sep 17 00:00:00 2001 From: CJSatnarine Date: Sun, 31 Dec 2023 14:56:57 -0500 Subject: [PATCH] Create low poly leaves function --- GenerateTerrain.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GenerateTerrain.py b/GenerateTerrain.py index 84f6560..d6f3346 100644 --- a/GenerateTerrain.py +++ b/GenerateTerrain.py @@ -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: