瀏覽代碼

update new lights

Mark Mine 21 年之前
父節點
當前提交
1825c98c2f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      direct/src/tkpanels/DirectSessionPanel.py

+ 1 - 1
direct/src/tkpanels/DirectSessionPanel.py

@@ -931,7 +931,7 @@ class DirectSessionPanel(AppShell):
         # Set light specific info
         # Set light specific info
         if self.activeLight:
         if self.activeLight:
             l = self.activeLight.getLight()
             l = self.activeLight.getLight()
-            self.lightActive.set(direct.lights.la.hasLight(l))
+            self.lightActive.set(render.hasLight(self.activeLight))
             lightColor = l.getColor() * 255.0
             lightColor = l.getColor() * 255.0
             self.lightColor.set([lightColor[0], lightColor[1],
             self.lightColor.set([lightColor[0], lightColor[1],
                                  lightColor[2], lightColor[3]], 0)
                                  lightColor[2], lightColor[3]], 0)