remove filename and directory from ops that dont need them

This commit is contained in:
Campbell Barton
2010-06-26 22:33:13 +00:00
parent d35dee7d0c
commit 69a384d3ed
5 changed files with 1 additions and 17 deletions

View File

@ -1468,8 +1468,6 @@ class ExportUDKAnimData(bpy.types.Operator):
filepath = StringProperty(name="File Path", description="Filepath used for exporting the PSA file", maxlen= 1024, default= "")
use_setting = BoolProperty(name="No Options Yet", description="No Options Yet", default= True)
filename = StringProperty(name="filename", description="", maxlen= 1024, default= "")
directory = StringProperty(name="directory", description="", maxlen= 1024, default= "")
pskexportbool = BoolProperty(name="Export PSK", description="Export Skeletal Mesh", default= True)
psaexportbool = BoolProperty(name="Export PSA", description="Export Action Set (Animation Data)", default= True)
actionexportall = BoolProperty(name="All Actions", description="This will export all the actions that matches the current armature.", default=False)

View File

@ -119,8 +119,6 @@ class CameraExporter(bpy.types.Operator):
bl_label = "Export Camera & Markers"
filepath = StringProperty(name="File Path", description="File path used for importing the RAW file", maxlen=1024, default="")
filename = StringProperty(name="File Name", description="Name of the file.")
directory = StringProperty(name="Directory", description="Directory of the file.")
frame_start = IntProperty(name="Start Frame",
description="Start frame for export",

View File

@ -95,8 +95,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, default= "")
filename = StringProperty(name="File Name", description="Name of the file.")
directory = StringProperty(name="Directory", description="Directory of the file.")
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object", default=True)

View File

@ -120,8 +120,6 @@ class RawImporter(bpy.types.Operator):
bl_label = "Import RAW"
filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="")
filename = StringProperty(name="File Name", description="Name of the file.")
directory = StringProperty(name="Directory", description="Directory of the file.")
def execute(self, context):

View File

@ -62,13 +62,9 @@ class StlImporter(bpy.types.Operator):
"the STL file",
maxlen=1024,
default="")
filename = StringProperty(name="File Name",
description="Name of the file.")
directory = StringProperty(name="Directory",
description="Directory of the file.")
def execute(self, context):
objName = bpy.utils.display_name(self.properties.filename)
objName = bpy.utils.display_name(self.properties.filepath.split("\\")[-1].split("/")[-1])
tris, pts = stl_utils.read_stl(self.properties.filepath)
blender_utils.create_and_link_mesh(objName, tris, pts)
@ -94,10 +90,6 @@ class StlExporter(bpy.types.Operator):
"the active object to STL file",
maxlen=1024,
default="")
filename = StringProperty(name="File Name",
description="Name of the file.")
directory = StringProperty(name="Directory",
description="Directory of the file.")
check_existing = BoolProperty(name="Check Existing",
description="Check and warn on "
"overwriting existing files",