Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-12 01:25:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-12 01:25:04 +0400
commit595167d13b957826ffde132fd33a3b93b4d57863 (patch)
treeaf4e2777fc3f36a31f23905bf7fdcc8c1831a911 /io_import_scene_mhx.py
parentf1b4acba3fc8b56bf3232cd5c05b8266a6af899e (diff)
make sure all filepath props have FILE_PATH subtype
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r--io_import_scene_mhx.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index e781669b..baa1e2ba 100644
--- a/io_import_scene_mhx.py
+++ b/io_import_scene_mhx.py
@@ -2868,7 +2868,7 @@ class ImportMhx(bpy.types.Operator, ImportHelper):
scale = FloatProperty(name="Scale", description="Default meter, decimeter = 1.0", default = theScale)
filename_ext = ".mhx"
filter_glob = StringProperty(default="*.mhx", options={'HIDDEN'})
- filepath = StringProperty(name="File Path", description="File path used for importing the MHX file", maxlen= 1024, default= "")
+ filepath = StringProperty(subtype='FILE_PATH')
for (prop, name, desc, flag) in MhxBoolProps:
expr = '%s = BoolProperty(name="%s", description="%s", default=toggle&%s)' % (prop, name, desc, flag)
@@ -3262,7 +3262,7 @@ def readMagpie(context, filepath, offs):
class VIEW3D_OT_MhxLoadMohoButton(bpy.types.Operator):
bl_idname = "mhx.pose_load_moho"
bl_label = "Moho (.dat)"
- filepath = StringProperty(name="File Path", description="File path used for importing the file", maxlen= 1024, default= "")
+ filepath = StringProperty(subtype='FILE_PATH')
startFrame = IntProperty(name="Start frame", description="First frame to import", default=1)
def execute(self, context):
@@ -3281,7 +3281,7 @@ class VIEW3D_OT_MhxLoadMohoButton(bpy.types.Operator):
class VIEW3D_OT_MhxLoadMagpieButton(bpy.types.Operator):
bl_idname = "mhx.pose_load_magpie"
bl_label = "Magpie (.mag)"
- filepath = StringProperty(name="File Path", description="File path used for importing the file", maxlen= 1024, default= "")
+ filepath = StringProperty(subtype='FILE_PATH')
startFrame = IntProperty(name="Start frame", description="First frame to import", default=1)
def execute(self, context):