Skip to content
Snippets Groups Projects
Commit 68b9fef9 authored by Campbell Barton's avatar Campbell Barton
Browse files

bugfix [#24338] All Expoter is not displayed.

parent 3e35db6c
No related branches found
No related tags found
No related merge requests found
......@@ -115,14 +115,16 @@ def writeCameras(context, filepath, frame_start, frame_end, only_selected=False)
from bpy.props import *
from io_utils import ExportHelper
class CameraExporter(bpy.types.Operator):
class CameraExporter(bpy.types.Operator, ExportHelper):
'''Save a python script which re-creartes cameras and markers elsewhere'''
bl_idname = "export_animation.cameras"
bl_label = "Export Camera & Markers"
filepath = StringProperty(name="File Path", description="File path used for importing the RAW file", maxlen=1024, default="")
filename_ext = ".py"
filter_glob = StringProperty(default="*.py", options={'HIDDEN'})
frame_start = IntProperty(name="Start Frame",
description="Start frame for export",
......
......@@ -1089,9 +1089,7 @@ class DirectXExporter(bpy.types.Operator):
bl_idname = "export.directx"
bl_label = "Export DirectX"
filepath = StringProperty()
filename = StringProperty()
directory = StringProperty()
filepath = StringProperty(subtype='FILE_PATH')
#Coordinate System
CoordinateSystem = EnumProperty(name="System", description="Select a coordinate system to export to", items=CoordinateSystems, default="1")
......
......@@ -1691,7 +1691,7 @@ class ExportUDKAnimData(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 exporting the PSA file", maxlen= 1024, default= "")
filepath = StringProperty(name="File Path", description="Filepath used for exporting the PSA file", maxlen= 1024, default= "", subtype='FILE_PATH')
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)
......
......@@ -94,7 +94,7 @@ class RawExporter(bpy.types.Operator):
bl_idname = "export_mesh.raw"
bl_label = "Export RAW"
filepath = StringProperty(name="File Path", description="Filepath used for exporting the RAW file", maxlen= 1024, default= "")
filepath = StringProperty(name="File Path", description="Filepath used for exporting the RAW file", maxlen= 1024, default= "", subtype='FILE_PATH')
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)
......
......@@ -122,13 +122,12 @@ class RawImporter(bpy.types.Operator):
bl_idname = "import_mesh.raw"
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.")
filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="", subtype='FILE_PATH')
def execute(self, context):
#convert the filename to an object name
objName = bpy.path.display_name(self.filename)
objName = bpy.path.display_name(self.filename.split("\\")[-1].split("/")[-1])
mesh = readMesh(self.filepath, objName)
addMeshObj(mesh, objName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment