LibOverride: Remove an override property when it has no operations.

Update #BKE_lib_override_library_id_unused_cleanup to also clear the
property when all its operations have been removed, even if the
property itself was not tagged as unused.
This commit is contained in:
Bastien Montagne
2023-08-07 18:41:19 +02:00
parent 2f907a0b53
commit d9ec3985a3

View File

@@ -4571,6 +4571,9 @@ void BKE_lib_override_library_id_unused_cleanup(ID *local)
BKE_lib_override_library_property_operation_delete(op, opop);
}
}
if (BLI_listbase_is_empty(&op->operations)) {
BKE_lib_override_library_property_delete(local->override_library, op);
}
}
}
}