From e4871edb66204081ac5939402bb2ff3f534fe53f Mon Sep 17 00:00:00 2001
From: John Phan <darkneter@gmail.com>
Date: Tue, 7 Dec 2010 18:14:05 +0000
Subject: [PATCH] fixed global variable error script.

---
 io_export_unreal_psk_psa.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 066b8e9c1..aaf61ce0f 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -1650,12 +1650,12 @@ bpy.types.Scene.unrealactionexportall = BoolProperty(
 bpy.types.Scene.unrealexportpsk = BoolProperty(
 	name="bool export psa",
 	description="bool for exporting this psk format",
-	default=False)
+	default=True)
 	
 bpy.types.Scene.unrealexportpsa = BoolProperty(
 	name="bool export psa",
 	description="bool for exporting this psa format",
-	default=False)
+	default=True)
 
 class ExportUDKAnimData(bpy.types.Operator):
 	global exportmessage
@@ -1769,6 +1769,8 @@ class OBJECT_OT_UnrealExport(bpy.types.Operator):
 		return{'FINISHED'}    
 
 def menu_func(self, context):
+	#bpy.context.scene.unrealexportpsk = True
+	#bpy.context.scene.unrealexportpsa = True
 	default_path = os.path.splitext(bpy.data.filepath)[0] + ".psk"
 	self.layout.operator("export.udk_anim_data", text="Skeleton Mesh / Animation Data (.psk/.psa)").filepath = default_path
 
-- 
GitLab