From 8994203b9f0d9c7de46fca0f644ee371bba6e973 Mon Sep 17 00:00:00 2001 From: Mark Eggert <72320499+TikiBear@users.noreply.github.com> Date: Sat, 14 Aug 2021 00:00:51 -0700 Subject: [PATCH] use container count Co-authored-by: Adam Johnson --- korman/exporter/rtlight.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/korman/exporter/rtlight.py b/korman/exporter/rtlight.py index ed0e0de..afb02b9 100644 --- a/korman/exporter/rtlight.py +++ b/korman/exporter/rtlight.py @@ -292,10 +292,9 @@ class LightConverter: else: self._report.msg("[{}] PermaLight '{}'", lamp.type, obj.name, indent=2) permaLights.append(pl_light) - lcount = lcount + 1 - - if lcount > 8: - self._report.warn("More than 8 RT lamps on material: '{}'".format(bm.name), indent=1) + + if len(permaLights) > 8: + self._report.warn("More than 8 RT lamps on material: '{}'", bm.name, indent=1) return (permaLights, permaProjs)