Browse Source

Fix some typos in old projection light code

pull/38/head
Adam Johnson 9 years ago
parent
commit
638279c85e
  1. 2
      korman/exporter/mesh.py
  2. 4
      korman/exporter/rtlight.py

2
korman/exporter/mesh.py

@ -135,7 +135,7 @@ class MeshConverter:
for i in permaLights:
geospan.addPermaLight(i)
for i in permaProjs:
geospan.addPermaProjs(i)
geospan.addPermaProj(i)
# If this object has a CI, we don't need xforms here...
if self._exporter().has_coordiface(bo):

4
korman/exporter/rtlight.py

@ -204,9 +204,7 @@ class LightConverter:
pl_light = self.get_light_key(obj, lamp, None)
if self._is_projection_lamp(lamp):
print(" [{}] PermaProj '{}'".format(lamp.type, obj.name))
permaProj.append(pl_light)
# TODO: run this through the material exporter...
# need to do some work to make the texture slot code not assume it's working with a material
permaProjs.append(pl_light)
else:
print(" [{}] PermaLight '{}'".format(lamp.type, obj.name))
permaLights.append(pl_light)

Loading…
Cancel
Save