Parenting: fix return value when parenting object to itself

Ensure parenting an object to itself is seen as error, by returning
`false`.

This error was introduced as part of a supposed-to-be-non-functional
cleanup rBb8d4a2aff8069dd7d6fb91ad0d9427eed489b68f.
This commit is contained in:
2020-10-30 12:39:13 +01:00
parent 9ab4536218
commit ad35fa1993

View File

@@ -696,7 +696,7 @@ bool ED_object_parent_set(ReportList *reports,
/* Preconditions. */
if (ob == par) {
/* Parenting an object to itself is impossible. */
return true;
return false;
}
if (BKE_object_parent_loop_check(par, ob)) {