Cleanup: clang format

Sorry for the noise, somehow missed that in rB0a32f6c8686c.
This commit is contained in:
Philipp Oeser 2020-05-15 16:31:18 +02:00
parent 266caa1820
commit a269761ec1
1 changed files with 2 additions and 6 deletions

View File

@ -483,17 +483,13 @@ static int collection_link_exec(bContext *C, wmOperator *op)
/* 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.");
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.");
BKE_report(op->reports, RPT_ERROR, "Could not add the collection because it is linked.");
return OPERATOR_CANCELLED;
}