diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-06 08:37:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-06 08:37:31 +0300 |
commit | 3cdd7fbdcc8a6a5dbb5c01f830405727fd26f3c7 (patch) | |
tree | b61b3341a40d58e27f9d78afa155154422e9a8f3 /io_export_unreal_psk_psa.py | |
parent | 5ab5f2db879f1d32eea43209d45449e73286f9c5 (diff) |
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.
Diffstat (limited to 'io_export_unreal_psk_psa.py')
-rw-r--r-- | io_export_unreal_psk_psa.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py index e7301870..066b8e9c 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 |