Edit comments
This commit is contained in:
@@ -36,7 +36,7 @@ def spawnGround():
|
|||||||
# Set the location.
|
# Set the location.
|
||||||
location = (x, y, -z)
|
location = (x, y, -z)
|
||||||
|
|
||||||
# Add the cubes.
|
# Add the cubes. k
|
||||||
bpy.ops.mesh.primitive_cube_add(size = size, location = location, scale = (size, size, size))
|
bpy.ops.mesh.primitive_cube_add(size = size, location = location, scale = (size, size, size))
|
||||||
|
|
||||||
# Set the newly created cube as the active object.
|
# Set the newly created cube as the active object.
|
||||||
@@ -73,7 +73,7 @@ def buildTree():
|
|||||||
# Set the colour.
|
# Set the colour.
|
||||||
treeTrunkColour = createMaterial(0.195465, 0.020193, 0.004988, 1)
|
treeTrunkColour = createMaterial(0.195465, 0.020193, 0.004988, 1)
|
||||||
assignMaterial(activeObject, treeTrunkColour)
|
assignMaterial(activeObject, treeTrunkColour)
|
||||||
# increase the counter
|
# Increase the counter.
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
||||||
# Create the leaves of the tree.
|
# Create the leaves of the tree.
|
||||||
|
Reference in New Issue
Block a user