diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-06-02 22:01:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-06-02 22:01:30 +0400 |
commit | 40f78d28a9ab6680b82c84cdf986d652c4127785 (patch) | |
tree | b4b41437ab2ee7f0d533dd5505a8ad33ec922615 /export_unreal_psk_psa.py | |
parent | 63cf0579e407d9d22b04f58d15875e634edbe573 (diff) |
filename --> filepath (changed in trunk/svn)
Diffstat (limited to 'export_unreal_psk_psa.py')
-rw-r--r-- | export_unreal_psk_psa.py | 4 |
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'} |