pep8 edits and avoid naming conflicts with python builtins
[blender.git] / intern / cycles / blender / addon / xml.py
index e64023f046b8031a11c85e7db7861daa56f9ce5f..f17051d92dc18a5d97d0eb31576600301953bbdd 100644 (file)
@@ -61,12 +61,12 @@ class ExportCyclesXML(bpy.types.Operator, ExportHelper):
 
         # get mesh
         scene = context.scene
-        object = context.object
+        obj = context.object
 
-        if not object:
+        if not obj:
             raise Exception("No active object")
 
-        mesh = object.to_mesh(scene, True, 'PREVIEW')
+        mesh = obj.to_mesh(scene, True, 'PREVIEW')
 
         if not mesh:
             raise Exception("No mesh data in active object")