[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4116] contrib/py/scripts/addons/ io_export_marmalade.py: Remove access to bpy.context. scene at registration time

Benoit Muller benoit.muller at laposte.net
Tue Jan 1 12:47:27 CET 2013


Revision: 4116
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4116
Author:   benoitmuller
Date:     2013-01-01 11:47:26 +0000 (Tue, 01 Jan 2013)
Log Message:
-----------
Remove access to bpy.context.scene at registration time

Modified Paths:
--------------
    contrib/py/scripts/addons/io_export_marmalade.py

Modified: contrib/py/scripts/addons/io_export_marmalade.py
===================================================================
--- contrib/py/scripts/addons/io_export_marmalade.py	2013-01-01 05:33:54 UTC (rev 4115)
+++ contrib/py/scripts/addons/io_export_marmalade.py	2013-01-01 11:47:26 UTC (rev 4116)
@@ -127,7 +127,6 @@
             print(bpy.context.scene)
             print(bpy.context.scene.frame_current)
         CurrentFrame = bpy.context.scene.frame_current
-        #comment because it crashes Blender on some old blend file: bpy.context.scene.frame_current = bpy.context.scene.frame_current
     if Config.Verbose:
         print("Done")
     
@@ -1400,15 +1399,11 @@
                     "However if you have defined several animations on the same armature,"\
                     "you can select to export all animations. You can see the list of animation actions in the DopeSheet window.",
         items=AnimationActions,
-        default="0")
-    if bpy.context.scene:
-        defFPS = bpy.context.scene.render.fps
-    else:
-        defFPS = 30                 
+        default="0")           
     AnimFPS = IntProperty(
         name="Animation FPS",
         description="Frame rate used to export animation in seconds (can be used to artficially slow down the exported animation, or to speed up it",
-        default=defFPS, min=1, max=300)
+        default=30, min=1, max=300)
 
     #Advance Options
     CoordinateSystem = EnumProperty(



More information about the Bf-extensions-cvs mailing list