Code cleanup:

* Use bpy.app.build_options for UI checks rather than custom ones.
This commit is contained in:
Thomas Dinges
2013-03-23 06:55:59 +00:00
parent 2006103a52
commit dd713654d5
4 changed files with 4 additions and 19 deletions

View File

@@ -157,7 +157,7 @@ class INFO_MT_file_import(Menu):
bl_label = "Import"
def draw(self, context):
if hasattr(bpy.types, "WM_OT_collada_import"):
if bpy.app.build_options.collada:
self.layout.operator("wm.collada_import", text="Collada (Default) (.dae)")
@@ -166,7 +166,7 @@ class INFO_MT_file_export(Menu):
bl_label = "Export"
def draw(self, context):
if hasattr(bpy.types, "WM_OT_collada_export"):
if bpy.app.build_options.collada:
self.layout.operator("wm.collada_export", text="Collada (Default) (.dae)")