瀏覽代碼

Fix variable name in `_scene_format` method of Blender exporter

Jordan Danford 8 年之前
父節點
當前提交
99daadc470
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      utils/exporters/blender/addons/io_three/exporter/geometry.py

+ 2 - 2
utils/exporters/blender/addons/io_three/exporter/geometry.py

@@ -341,7 +341,7 @@ class Geometry(base_classes.BaseNode):
             metadata[constants.FACES] = faces
             metadata[constants.FACES] = faces
 
 
     def _scene_format(self):
     def _scene_format(self):
-        """Format the output for Scene compatability
+        """Format the output for Scene compatibility
 
 
         :rtype: dict
         :rtype: dict
 
 
@@ -358,7 +358,7 @@ class Geometry(base_classes.BaseNode):
             data.update(self._component_data())
             data.update(self._component_data())
             draw_calls = self.get(constants.DRAW_CALLS)
             draw_calls = self.get(constants.DRAW_CALLS)
             if draw_calls is not None:
             if draw_calls is not None:
-                geometry_data[constants.DRAW_CALLS] = draw_calls
+                data[constants.DRAW_CALLS] = draw_calls
 
 
         return data
         return data