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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-05-15 14:47:04 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-05-15 14:47:04 +0300
commit03659c2cf9b38eef65b7d1dcd4263ef8a5602bde (patch)
tree05f06a22dbf7c2beeb0dca35f9a865f11904416a /source/blender/editors/object/object_collection.c
parenta5d394fad23280687880aee0082797cf8dd1cdd5 (diff)
parent0a32f6c8686c6a14a052f5b254655b3b69a581e3 (diff)
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/editors/object/object_collection.c')
-rw-r--r--source/blender/editors/object/object_collection.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_collection.c b/source/blender/editors/object/object_collection.c
index b3155ab3ade..74ba94fbf4c 100644
--- a/source/blender/editors/object/object_collection.c
+++ b/source/blender/editors/object/object_collection.c
@@ -481,6 +481,22 @@ static int collection_link_exec(bContext *C, wmOperator *op)
return OPERATOR_FINISHED;
}
+ /* Currently this should not be allowed (might be supported in the future though...). */
+ if (ID_IS_OVERRIDE_LIBRARY(&collection->id)) {
+ BKE_report(op->reports,
+ RPT_ERROR,
+ "Could not add the collection because it is overridden.");
+ return OPERATOR_CANCELLED;
+ }
+ /* Linked collections are already checked for by using RNA_collection_local_itemf
+ * but operator can be called without invoke */
+ if (ID_IS_LINKED(&collection->id)) {
+ BKE_report(op->reports,
+ RPT_ERROR,
+ "Could not add the collection because it is linked.");
+ return OPERATOR_CANCELLED;
+ }
+
/* Adding object to collection which is used as dupli-collection for self is bad idea.
*
* It is also bad idea to add object to collection which is in collection which