[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42575] trunk/blender/release/scripts/ startup/bl_operators: not all filepaths had the FILE_PATH subtype, this means using non utf8 paths would give errors.
Campbell Barton
ideasman42 at gmail.com
Sun Dec 11 22:23:36 CET 2011
Revision: 42575
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42575
Author: campbellbarton
Date: 2011-12-11 21:23:29 +0000 (Sun, 11 Dec 2011)
Log Message:
-----------
not all filepaths had the FILE_PATH subtype, this means using non utf8 paths would give errors.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_operators/anim.py
trunk/blender/release/scripts/startup/bl_operators/image.py
trunk/blender/release/scripts/startup/bl_operators/wm.py
Modified: trunk/blender/release/scripts/startup/bl_operators/anim.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/anim.py 2011-12-11 19:48:56 UTC (rev 42574)
+++ trunk/blender/release/scripts/startup/bl_operators/anim.py 2011-12-11 21:23:29 UTC (rev 42575)
@@ -38,7 +38,7 @@
bl_label = "Export Keying Set..."
filepath = StringProperty(
- name="File Path",
+ subtype='FILE_PATH',
)
filter_folder = BoolProperty(
name="Filter folders",
Modified: trunk/blender/release/scripts/startup/bl_operators/image.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/image.py 2011-12-11 19:48:56 UTC (rev 42574)
+++ trunk/blender/release/scripts/startup/bl_operators/image.py 2011-12-11 21:23:29 UTC (rev 42575)
@@ -30,9 +30,7 @@
bl_options = {'REGISTER'}
filepath = StringProperty(
- name="File Path",
- description="Path to an image file",
- maxlen=1024,
+ subtype='FILE_PATH',
)
def _editor_guess(self, context):
Modified: trunk/blender/release/scripts/startup/bl_operators/wm.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/wm.py 2011-12-11 19:48:56 UTC (rev 42574)
+++ trunk/blender/release/scripts/startup/bl_operators/wm.py 2011-12-11 21:23:29 UTC (rev 42575)
@@ -748,8 +748,6 @@
bl_label = ""
filepath = StringProperty(
- name="File Path",
- maxlen=1024,
subtype='FILE_PATH',
)
@@ -1085,8 +1083,7 @@
bl_label = "Activate Keyconfig"
filepath = StringProperty(
- name="File Path",
- maxlen=1024,
+ subtype='FILE_PATH',
)
def execute(self, context):
@@ -1116,8 +1113,7 @@
bl_label = "Activate Application Configuration"
filepath = StringProperty(
- name="File Path",
- maxlen=1024,
+ subtype='FILE_PATH',
)
def execute(self, context):
@@ -1203,8 +1199,7 @@
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 @@
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 @@
)
filepath = StringProperty(
- name="File Path",
- description="File path to write file to",
+ subtype='FILE_PATH',
)
filter_folder = BoolProperty(
name="Filter folders",
More information about the Bf-blender-cvs
mailing list