From 120bf0d87dd9338d5858ea1941f99708d9431346 Mon Sep 17 00:00:00 2001
From: Benoit Muller <benoit.muller@laposte.net>
Date: Tue, 1 Jan 2013 11:47:26 +0000
Subject: [PATCH] Remove access to bpy.context.scene at registration time

---
 io_export_marmalade.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/io_export_marmalade.py b/io_export_marmalade.py
index 8d638fc9..401efe7c 100644
--- a/io_export_marmalade.py
+++ b/io_export_marmalade.py
@@ -127,7 +127,6 @@ def ExportMadeWithMarmaladeGroup(Config):
             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 @@ class MarmaladeExporter(bpy.types.Operator):
                     "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(
-- 
GitLab