[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [61183] trunk/blender/release/scripts/ modules/bpy_extras/object_utils.py: Fix #37338: Add objects from addon work in a Linked Scene

Sergey Sharybin sergey.vfx at gmail.com
Thu Nov 7 09:40:48 CET 2013


Revision: 61183
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=61183
Author:   nazgul
Date:     2013-11-07 08:40:47 +0000 (Thu, 07 Nov 2013)
Log Message:
-----------
Fix #37338: Add objects from addon work in a Linked Scene

Added a poll function to add object helper which checks
whether scene is linked or not.

All the primitives which are delivered from this helper
will work properly for linked scenes. If there're still
primitives which are not delivered from this class, well
nothing i can do now.

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/bpy_extras/object_utils.py

Modified: trunk/blender/release/scripts/modules/bpy_extras/object_utils.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy_extras/object_utils.py	2013-11-07 08:33:09 UTC (rev 61182)
+++ trunk/blender/release/scripts/modules/bpy_extras/object_utils.py	2013-11-07 08:40:47 UTC (rev 61183)
@@ -201,7 +201,11 @@
             subtype='EULER',
             )
 
+    @classmethod
+    def poll(self, context):
+        return context.scene.library is None
 
+
 def object_add_grid_scale(context):
     """
     Return scale which should be applied on object




More information about the Bf-blender-cvs mailing list