diff options
Diffstat (limited to 'io_export_directx_x.py')
-rw-r--r-- | io_export_directx_x.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/io_export_directx_x.py b/io_export_directx_x.py index 7fb56308..d561ecc6 100644 --- a/io_export_directx_x.py +++ b/io_export_directx_x.py @@ -1059,19 +1059,17 @@ class DirectXExporter(bpy.types.Operator): def menu_func(self, context): - DefaultPath = os.path.splitext(bpy.data.filepath)[0] + ".x" - self.layout.operator(DirectXExporter.bl_idname, text="DirectX (.x)").filepath = DefaultPath + default_path = os.path.splitext(bpy.data.filepath)[0] + ".x" + self.layout.operator(DirectXExporter.bl_idname, text="DirectX (.x)").filepath = default_path def register(): - bpy.types.register(DirectXExporter) bpy.types.INFO_MT_file_export.append(menu_func) def unregister(): - bpy.types.unregister(DirectXExporter) bpy.types.INFO_MT_file_export.remove(menu_func) if __name__ == "__main__": - register()
\ No newline at end of file + register() |