Skip to content
Snippets Groups Projects
Commit fe7a3619 authored by Campbell Barton's avatar Campbell Barton
Browse files

remove some broken code, patch by Andrew Hale but has no svn access atm.

parent e88bae64
No related branches found
No related tags found
No related merge requests found
...@@ -760,12 +760,14 @@ def addTree(props): ...@@ -760,12 +760,14 @@ def addTree(props):
leafObj.parent = treeOb leafObj.parent = treeOb
leafMesh.from_pydata(leafVerts,(),leafFaces) leafMesh.from_pydata(leafVerts,(),leafFaces)
leafMesh.validate() leafMesh.validate()
'''
# TODO: Broken after Bmesh merger, disable for now since default uvs are OK
if leafShape == 'rect': if leafShape == 'rect':
uv = leafMesh.uv_textures.new("leafUV") uv = leafMesh.uv_textures.new("leafUV")
for tf in uv.data: for tf in uv.data:
tf.uv1, tf.uv2, tf.uv3, tf.uv4 = Vector((1, 0)), Vector((1, 1)), Vector((1 - leafScaleX, 1)), Vector((1 - leafScaleX, 0)) tf.uv1, tf.uv2, tf.uv3, tf.uv4 = Vector((1, 0)), Vector((1, 1)), Vector((1 - leafScaleX, 1)), Vector((1 - leafScaleX, 0))
'''
# This can be used if we need particle leaves # This can be used if we need particle leaves
# if (storeN == levels-1) and leaves: # if (storeN == levels-1) and leaves:
# normalList = [] # normalList = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment