Skip to content
Snippets Groups Projects
Commit 3cdd7fbd authored by Campbell Barton's avatar Campbell Barton
Browse files

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.
parent 5ab5f2db
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment