瀏覽代碼

Blender exporter: Fix reference to missing constant

This made exporting scenes with light not work.
Simon Epskamp 8 年之前
父節點
當前提交
3e342c1574
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/exporters/blender/addons/io_three/exporter/api/object.py

+ 1 - 1
utils/exporters/blender/addons/io_three/exporter/api/object.py

@@ -314,7 +314,7 @@ def node_type(obj):
             POINT: constants.POINT_LIGHT,
             SUN: constants.DIRECTIONAL_LIGHT,
             SPOT: constants.SPOT_LIGHT,
-            AREA: constants.AREA_LIGHT,
+            AREA: constants.RECT_AREA_LIGHT,
             HEMI: constants.HEMISPHERE_LIGHT
         },
         CAMERA: {