diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-12 01:23:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-12 01:23:29 +0400 |
commit | 5600cf9dd92ebf7f256a5996db080c4721779b36 (patch) | |
tree | cdecdbf3f7c72b5c144ce1935089c072733fdf04 /release/scripts/startup/bl_operators | |
parent | b22405fa6f763d13feb2b28901ed8e1cf27034f2 (diff) |
not all filepaths had the FILE_PATH subtype, this means using non utf8 paths would give errors.
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r-- | release/scripts/startup/bl_operators/anim.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/image.py | 4 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 17 |
3 files changed, 7 insertions, 16 deletions
diff --git a/release/scripts/startup/bl_operators/anim.py b/release/scripts/startup/bl_operators/anim.py index e1d33198142..01103aede0d 100644 --- a/release/scripts/startup/bl_operators/anim.py +++ b/release/scripts/startup/bl_operators/anim.py @@ -38,7 +38,7 @@ class ANIM_OT_keying_set_export(Operator): bl_label = "Export Keying Set..." filepath = StringProperty( - name="File Path", + subtype='FILE_PATH', ) filter_folder = BoolProperty( name="Filter folders", diff --git a/release/scripts/startup/bl_operators/image.py b/release/scripts/startup/bl_operators/image.py index c97f6eae6c7..55ad8a77d43 100644 --- a/release/scripts/startup/bl_operators/image.py +++ b/release/scripts/startup/bl_operators/image.py @@ -30,9 +30,7 @@ class EditExternally(Operator): bl_options = {'REGISTER'} filepath = StringProperty( - name="File Path", - description="Path to an image file", - maxlen=1024, + subtype='FILE_PATH', ) def _editor_guess(self, context): diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 89029e3af01..1da5e2ca381 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -748,8 +748,6 @@ class WM_OT_path_open(Operator): bl_label = "" filepath = StringProperty( - name="File Path", - maxlen=1024, subtype='FILE_PATH', ) @@ -1085,8 +1083,7 @@ class WM_OT_keyconfig_activate(Operator): bl_label = "Activate Keyconfig" filepath = StringProperty( - name="File Path", - maxlen=1024, + subtype='FILE_PATH', ) def execute(self, context): @@ -1116,8 +1113,7 @@ class WM_OT_appconfig_activate(Operator): bl_label = "Activate Application Configuration" filepath = StringProperty( - name="File Path", - maxlen=1024, + subtype='FILE_PATH', ) def execute(self, context): @@ -1203,8 +1199,7 @@ class WM_OT_keyconfig_import(Operator): bl_label = "Import Key Configuration..." filepath = StringProperty( - name="File Path", - description="Filepath to write file to", + subtype='FILE_PATH', default="keymap.py", ) filter_folder = BoolProperty( @@ -1270,8 +1265,7 @@ class WM_OT_keyconfig_export(Operator): bl_label = "Export Key Configuration..." filepath = StringProperty( - name="File Path", - description="Filepath to write file to", + subtype='FILE_PATH', default="keymap.py", ) filter_folder = BoolProperty( @@ -1513,8 +1507,7 @@ class WM_OT_addon_install(Operator): ) filepath = StringProperty( - name="File Path", - description="File path to write file to", + subtype='FILE_PATH', ) filter_folder = BoolProperty( name="Filter folders", |