diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-11 19:36:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-11 19:36:48 +0400 |
commit | 25bb26c2f327d0cab0d08678127609a6c0dd8fb9 (patch) | |
tree | d1e6f20576ac3ed085a42840582c05d811451d07 /io_scene_x3d | |
parent | d1228ea8d8279c736871b94e71cb81fbf73ea2c6 (diff) |
pep8 edits & import cleanup
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/__init__.py | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/io_scene_x3d/__init__.py b/io_scene_x3d/__init__.py index d859dc69..44b08e2e 100644 --- a/io_scene_x3d/__init__.py +++ b/io_scene_x3d/__init__.py @@ -37,13 +37,6 @@ if "bpy" in locals(): if "export_x3d" in locals(): imp.reload(export_x3d) -# Benoit's patch! -try: - import gpu -except: - gpu = None - - import bpy from bpy.props import StringProperty, BoolProperty, EnumProperty from bpy_extras.io_utils import (ImportHelper, @@ -140,12 +133,11 @@ class ExportX3D(bpy.types.Operator, ExportHelper): description="Export parent child relationships", default=True, ) - if gpu is not None: - use_h3d = BoolProperty( - name="H3D Extensions", - description="Export shaders for H3D", - default=False, - ) + use_h3d = BoolProperty( + name="H3D Extensions", + description="Export shaders for H3D", + default=False, + ) axis_forward = EnumProperty( name="Forward", items=(('X', "X Forward", ""), |