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
parentf1b4acba3fc8b56bf3232cd5c05b8266a6af899e (diff)
make sure all filepath props have FILE_PATH subtype
-rw-r--r--game_engine_save_as_runtime.py2
-rw-r--r--io_anim_acclaim/__init__.py7
-rw-r--r--io_anim_c3d/__init__.py4
-rw-r--r--io_export_unreal_psk_psa.py3
-rw-r--r--io_import_scene_dxf.py3
-rw-r--r--io_import_scene_mhx.py6
-rw-r--r--io_import_scene_unreal_psk.py3
-rw-r--r--io_mesh_raw/__init__.py7
-rw-r--r--io_mesh_uv_layout/__init__.py4
-rw-r--r--io_scene_m3/import_m3.py6
10 files changed, 11 insertions, 34 deletions
diff --git a/game_engine_save_as_runtime.py b/game_engine_save_as_runtime.py
index 6c9e11b6..37387d9a 100644
--- a/game_engine_save_as_runtime.py
+++ b/game_engine_save_as_runtime.py
@@ -194,8 +194,6 @@ class SaveAsRuntime(bpy.types.Operator):
subtype='FILE_PATH',
)
filepath = StringProperty(
- name="Output Path",
- description="Where to save the runtime",
subtype='FILE_PATH',
)
copy_python = BoolProperty(
diff --git a/io_anim_acclaim/__init__.py b/io_anim_acclaim/__init__.py
index 9c50f919..be9996d9 100644
--- a/io_anim_acclaim/__init__.py
+++ b/io_anim_acclaim/__init__.py
@@ -312,9 +312,7 @@ class AsfImporter(bpy.types.Operator):
bl_label = "Import ASF"
filepath = StringProperty(
- name="File Path",
- maxlen=1024, default="",
- description="Path to the ASF file",
+ subtype='FILE_PATH',
)
armature_name = StringProperty(
name="Armature Name", maxlen=32,
@@ -408,8 +406,7 @@ class AmcImporter(bpy.types.Operator):
bl_label = "Import AMC"
filepath = StringProperty(
- name="File Path", maxlen=1024,
- description="Path to the AMC file",
+ subtype='FILE_PATH',
)
frame_skip = IntProperty(
name="Fps divisor",
diff --git a/io_anim_c3d/__init__.py b/io_anim_c3d/__init__.py
index 2a460bea..36c6f0c2 100644
--- a/io_anim_c3d/__init__.py
+++ b/io_anim_c3d/__init__.py
@@ -105,9 +105,7 @@ class C3DImporter(bpy.types.Operator):
bl_label = "Import C3D"
filepath = StringProperty(
- name="File Path",
- maxlen=1024,
- description="Path to the C3D file",
+ subtype='FILE_PATH',
)
from_inches = BoolProperty(
name="Convert from inches to metric",
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 121c5000..1c5bcaa8 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -1938,9 +1938,6 @@ class ExportUDKAnimData(bpy.types.Operator):
# to the class instance from the operator settings before calling.
filepath = StringProperty(
- name="File Path",
- description="Filepath used for exporting the PSA file",
- maxlen= 1024,
subtype='FILE_PATH',
)
filter_glob = StringProperty(
diff --git a/io_import_scene_dxf.py b/io_import_scene_dxf.py
index b04f8058..3fe3e1fd 100644
--- a/io_import_scene_dxf.py
+++ b/io_import_scene_dxf.py
@@ -2427,9 +2427,6 @@ class IMPORT_OT_autocad_dxf(bpy.types.Operator):
bl_options = {'UNDO'}
filepath = StringProperty(
- name="File Path",
- description="Filepath used for importing the DXF file",
- maxlen=1024,
subtype='FILE_PATH',
)
new_scene = BoolProperty(
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):
diff --git a/io_import_scene_unreal_psk.py b/io_import_scene_unreal_psk.py
index 2451b4b1..49423dc1 100644
--- a/io_import_scene_unreal_psk.py
+++ b/io_import_scene_unreal_psk.py
@@ -749,9 +749,6 @@ class IMPORT_OT_psk(bpy.types.Operator):
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
filepath = StringProperty(
- name="File Path",
- description="Filepath used for importing the psk file",
- maxlen= 1024,
subtype='FILE_PATH',
)
filter_glob = StringProperty(
diff --git a/io_mesh_raw/__init__.py b/io_mesh_raw/__init__.py
index e9903b4d..f712a7a1 100644
--- a/io_mesh_raw/__init__.py
+++ b/io_mesh_raw/__init__.py
@@ -52,7 +52,9 @@ class RawImporter(bpy.types.Operator):
bl_label = "Import RAW"
bl_options = {'UNDO'}
- filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="", subtype='FILE_PATH')
+ filepath = StringProperty(
+ subtype='FILE_PATH',
+ )
filter_glob = StringProperty(default="*.raw", options={'HIDDEN'})
def execute(self, context):
@@ -72,9 +74,6 @@ class RawExporter(bpy.types.Operator):
bl_label = "Export RAW"
filepath = StringProperty(
- name="File Path",
- description="Filepath used for exporting the RAW file",
- maxlen=1024,
subtype='FILE_PATH',
)
check_existing = BoolProperty(
diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py
index 77910c86..255fd53d 100644
--- a/io_mesh_uv_layout/__init__.py
+++ b/io_mesh_uv_layout/__init__.py
@@ -63,10 +63,6 @@ class ExportUVLayout(bpy.types.Operator):
bl_options = {'REGISTER', 'UNDO'}
filepath = StringProperty(
- name="File Path",
- description="File path used for exporting the SVG file",
- maxlen=1024,
- default="",
subtype='FILE_PATH',
)
check_existing = BoolProperty(
diff --git a/io_scene_m3/import_m3.py b/io_scene_m3/import_m3.py
index a6f48cd4..b50562ef 100644
--- a/io_scene_m3/import_m3.py
+++ b/io_scene_m3/import_m3.py
@@ -347,10 +347,8 @@ class M3Importer(bpy.types.Operator):
# to the class instance from the operator settings before calling.
filepath = StringProperty(
- name="File Path",\
- description="Filepath used for importing the M3 file",\
- maxlen=1024,\
- default="")
+ subtype='FILE_PATH',
+ )
def execute(self, context):
t = time.mktime(datetime.datetime.now().timetuple())