diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-15 02:17:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-15 02:17:52 +0300 |
commit | 82783cd0cd8e742611adb83327431e91806a39db (patch) | |
tree | 6292ac4e03483cf323e5e3fe838cf8a958701fe6 /release/scripts/modules | |
parent | f2b1645a75096076910b0c0d46c9b4d5e42c4698 (diff) |
pep8 edits and remove commented code from last commit.
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 1 | ||||
-rw-r--r-- | release/scripts/modules/io_utils.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index eff59668e9c..c3352dd33ad 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -28,6 +28,7 @@ StructMetaPropGroup = _bpy.StructMetaPropGroup bpy_types.BlendDataLibraries.load = _bpy._library_load + class Context(StructRNA): __slots__ = () diff --git a/release/scripts/modules/io_utils.py b/release/scripts/modules/io_utils.py index 0b333d29377..10729c465b7 100644 --- a/release/scripts/modules/io_utils.py +++ b/release/scripts/modules/io_utils.py @@ -25,7 +25,7 @@ from bpy.props import StringProperty, BoolProperty class ExportHelper: filepath = StringProperty(name="File Path", description="Filepath used for exporting the file", maxlen=1024, default="", subtype='FILE_PATH') check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'}) - + # subclasses can override with decorator # True == use ext, False == no ext, None == do nothing. check_extension = True @@ -46,7 +46,7 @@ class ExportHelper: def check(self, context): check_extension = self.check_extension - + if check_extension is None: return False |