From 3cdd7fbdcc8a6a5dbb5c01f830405727fd26f3c7 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Mon, 6 Dec 2010 05:37:31 +0000
Subject: [PATCH] fix [#25056] RuntimeError: Writing to ID classes in this
 context is not allowed draw functions cant edit scene data now, these values
 are set in execute() so should not be set while drawing the menu.

---
 io_export_unreal_psk_psa.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index e73018705..066b8e9c1 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -1769,8 +1769,6 @@ 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