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>2010-06-02 22:01:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-02 22:01:30 +0400
commit40f78d28a9ab6680b82c84cdf986d652c4127785 (patch)
treeb4b41437ab2ee7f0d533dd5505a8ad33ec922615 /export_unreal_psk_psa.py
parent63cf0579e407d9d22b04f58d15875e634edbe573 (diff)
filename --> filepath (changed in trunk/svn)
Diffstat (limited to 'export_unreal_psk_psa.py')
-rw-r--r--export_unreal_psk_psa.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/export_unreal_psk_psa.py b/export_unreal_psk_psa.py
index ed1cfb0f..0a02bcd9 100644
--- a/export_unreal_psk_psa.py
+++ b/export_unreal_psk_psa.py
@@ -1502,7 +1502,7 @@ class ExportUDKAnimData(bpy.types.Operator):
def menu_func(self, context):
bpy.context.scene.unrealexportpsk = True
bpy.context.scene.unrealexportpsa = True
- default_path = bpy.data.filename.replace(".blend", ".psk")
+ default_path = bpy.data.filepath.replace(".blend", ".psk")
self.layout.operator ("export.udk_anim_data", text="Skeleton Mesh / Animation Data (.psk/.psa)").path = default_path
class VIEW3D_PT_unrealtools_objectmode(bpy.types.Panel):
@@ -1567,7 +1567,7 @@ class OBJECT_OT_UnrealExport(bpy.types.Operator):
bpy.context.scene.unrealexportpsk = True
bpy.context.scene.unrealexportpsa = True
print("Exporting ALL...")
- default_path = bpy.data.filename.replace(".blend", ".psk")
+ default_path = bpy.data.filepath.replace(".blend", ".psk")
fs_callback(default_path, bpy.context, False)
self.report({'WARNING', 'INFO'}, exportmessage)
return{'FINISHED'}