Debug: Add more log info in RNA override code.

Non-functional change.
This commit is contained in:
Bastien Montagne
2024-07-04 14:52:53 +02:00
parent 95b3daed5d
commit 44b6b59dca

View File

@@ -840,6 +840,11 @@ bool RNA_struct_override_matches(Main *bmain,
const bool is_restored = rna_property_override_operation_apply(bmain, rnaapply_ctx);
if (is_restored) {
CLOG_INFO(&LOG,
5,
"Restoreed forbidden liboverride `%s` for override data '%s'",
rna_path->c_str(),
ptr_local->owner_id->name);
if (r_report_flags) {
*r_report_flags |= RNA_OVERRIDE_MATCH_RESULT_RESTORED;
}
@@ -878,6 +883,12 @@ bool RNA_struct_override_matches(Main *bmain,
opop_restore->tag |= LIBOVERRIDE_PROP_TAG_NEEDS_RETORE;
liboverride->runtime->tag |= LIBOVERRIDE_TAG_NEEDS_RESTORE;
CLOG_INFO(
&LOG,
5,
"Tagging for restoration forbidden liboverride `%s` for override data '%s'",
rna_path->c_str(),
ptr_local->owner_id->name);
if (r_report_flags) {
*r_report_flags |= RNA_OVERRIDE_MATCH_RESULT_RESTORE_TAGGED;
}