diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2008-03-07 05:40:12 +0300 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2008-03-07 05:40:12 +0300 |
commit | 5ea3956e4e6398fe27a4ce7d6b1c5a1a29134c40 (patch) | |
tree | e2cf76714c34ad6e3edc0b02a5e5e9990cbdfd1a /release | |
parent | 7a3c9bb5d1ab5adfdb243b66b44a9a527964fd83 (diff) |
-> Light points vert normal bug and DOF fixes
If light points are not given a unit normal they will
not show up correctly in some applications. Further DOF
nodes were not being exported correctly.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/flt_export.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/release/scripts/flt_export.py b/release/scripts/flt_export.py index 7e88237ccf2..5e69e203374 100644 --- a/release/scripts/flt_export.py +++ b/release/scripts/flt_export.py @@ -100,7 +100,7 @@ FLOAT_TOLERANCE = options.tolerance #need to move all this stuff to flt_properties.py. identity_matrix = [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]] -alltypes = [2,4,11,73,63,111] +alltypes = [2,4,14,11,73,63,111] childtypes = { 2 : [111,2,73,4,14,63], 4 : [111], @@ -196,11 +196,14 @@ class GlobalResourceRepository: def request_vertex_index(self, object, mesh, face, vfindex, uvok,cindex): flatShadeNorm = None + vno = None + if type(face) is list: vertex = face[vfindex] elif str(type(face)) == "<type " + "'Blender MVert'>": vertex = face + vno = Blender.Mathutils.Vector(0.0,0.0,1.0) elif str(type(face)) == "<type " + "'Blender MEdge'>": if vfindex == 1: vertex = face.v1 @@ -222,8 +225,11 @@ class GlobalResourceRepository: vertex = shadowVert(vertex,object,True,flatShadeNorm) else: vertex = shadowVert(vertex,object,False,flatShadeNorm) + + if vno: + vertex.no = vno - + #Check to see if this vertex has been visited before. If not, add if not indexhash.has_key(vertex.index): if uvok: |