Browse Source

use container count

Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
pull/275/head
Mark Eggert 3 years ago committed by GitHub
parent
commit
8994203b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      korman/exporter/rtlight.py

5
korman/exporter/rtlight.py

@ -292,10 +292,9 @@ class LightConverter:
else: else:
self._report.msg("[{}] PermaLight '{}'", lamp.type, obj.name, indent=2) self._report.msg("[{}] PermaLight '{}'", lamp.type, obj.name, indent=2)
permaLights.append(pl_light) permaLights.append(pl_light)
lcount = lcount + 1
if lcount > 8: if len(permaLights) > 8:
self._report.warn("More than 8 RT lamps on material: '{}'".format(bm.name), indent=1) self._report.warn("More than 8 RT lamps on material: '{}'", bm.name, indent=1)
return (permaLights, permaProjs) return (permaLights, permaProjs)

Loading…
Cancel
Save