[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3332] contrib/py/scripts/addons/ object_edit_linked.py: -File check handler was outside of the register function ( and there was no remove in unregister

Jason van Gumster jason at handturkeystudios.com
Wed May 2 18:19:50 CEST 2012


Revision: 3332
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3332
Author:   thefallenweeble
Date:     2012-05-02 16:19:49 +0000 (Wed, 02 May 2012)
Log Message:
-----------
-File check handler was outside of the register function (and there was no remove in unregister
-Mis-named operator in the unregister function

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

Modified: contrib/py/scripts/addons/object_edit_linked.py
===================================================================
--- contrib/py/scripts/addons/object_edit_linked.py	2012-05-02 15:04:40 UTC (rev 3331)
+++ contrib/py/scripts/addons/object_edit_linked.py	2012-05-02 16:19:49 UTC (rev 3332)
@@ -20,7 +20,7 @@
 bl_info = {
     "name": "Edit Linked Library",
     "author": "Jason van Gumster (Fweeb)",
-    "version": (0, 7, 0),
+    "version": (0, 7, 1),
     "blender": (2, 6, 0),
     "location": "View3D > Toolshelf > Edit Linked Library",
     "description": "Allows editing of objects linked from a .blend library.",
@@ -149,10 +149,8 @@
             self.layout.label(text = "Active object is not linked")
 
 
-bpy.app.handlers.load_post.append(linked_file_check)
-
-
 def register():
+    bpy.app.handlers.load_post.append(linked_file_check)
     bpy.utils.register_class(EditLinked)
     bpy.utils.register_class(ReturnToOriginal)
     bpy.utils.register_class(PanelLinkedEdit)
@@ -171,8 +169,9 @@
 
 def unregister():
     bpy.utils.unregister_class(EditLinked)
-    bpy.utils.unregister_class(SaveAndResume)
+    bpy.utils.unregister_class(ReturnToOriginal)
     bpy.utils.unregister_class(PanelLinkedEdit)
+    bpy.app.handlers.load_post.remove(linked_file_check)
 
     del bpy.types.Scene.edit_linked_autosave
 
@@ -183,4 +182,4 @@
 
 
 if __name__ == "__main__":
-    register()
+    register()
\ No newline at end of file



More information about the Bf-extensions-cvs mailing list