[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1238] trunk/py/scripts/addons/ io_export_unreal_psk_psa.py: fix [#25056] RuntimeError: Writing to ID classes in this context is not allowed

Campbell Barton ideasman42 at gmail.com
Mon Dec 6 06:37:32 CET 2010


Revision: 1238
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1238
Author:   campbellbarton
Date:     2010-12-06 06:37:31 +0100 (Mon, 06 Dec 2010)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_export_unreal_psk_psa.py

Modified: trunk/py/scripts/addons/io_export_unreal_psk_psa.py
===================================================================
--- trunk/py/scripts/addons/io_export_unreal_psk_psa.py	2010-12-05 18:50:32 UTC (rev 1237)
+++ trunk/py/scripts/addons/io_export_unreal_psk_psa.py	2010-12-06 05:37:31 UTC (rev 1238)
@@ -1769,8 +1769,6 @@
 		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
 




More information about the Bf-extensions-cvs mailing list