Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-11-07 12:40:47 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-11-07 12:40:47 +0400
commitbe09e694b1a983b2aeb158290bb6dc831e1b8622 (patch)
tree7ee5854795212e7909f9cd815dc94e3a70783acb /release
parent921d3555edda3c43bba7f45c5892310263b4e0e6 (diff)
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.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/bpy_extras/object_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py
index 7ce5aff581a..a14f0128444 100644
--- a/release/scripts/modules/bpy_extras/object_utils.py
+++ b/release/scripts/modules/bpy_extras/object_utils.py
@@ -201,6 +201,10 @@ class AddObjectHelper:
subtype='EULER',
)
+ @classmethod
+ def poll(self, context):
+ return context.scene.library is None
+
def object_add_grid_scale(context):
"""