X-Git-Url: https://git.blender.org/gitweb/gitweb.cgi/blender.git/blobdiff_plain/fd134927dd23047237c6e490c09454487ba19a4a..c9341334b17db0df98c9f01142fc954e77962823:/intern/cycles/app/io_export_cycles_xml.py diff --git a/intern/cycles/app/io_export_cycles_xml.py b/intern/cycles/app/io_export_cycles_xml.py index 2314d935214..3ba9e201d11 100644 --- a/intern/cycles/app/io_export_cycles_xml.py +++ b/intern/cycles/app/io_export_cycles_xml.py @@ -93,7 +93,7 @@ class ExportCyclesXML(bpy.types.Operator, ExportHelper): @classmethod def poll(cls, context): - return context.active_object != None + return (context.active_object is not None) def execute(self, context): filepath = bpy.path.ensure_ext(self.filepath, ".xml")