LibOverride: Cleanup: reserve debug messages to debug builds.
This commit is contained in:
parent
756656caff
commit
1f6a1cee74
@ -886,9 +886,11 @@ static void rna_property_override_apply_ex(Main *bmain,
|
|||||||
if (!do_insert != !ELEM(opop->operation,
|
if (!do_insert != !ELEM(opop->operation,
|
||||||
IDOVERRIDE_LIBRARY_OP_INSERT_AFTER,
|
IDOVERRIDE_LIBRARY_OP_INSERT_AFTER,
|
||||||
IDOVERRIDE_LIBRARY_OP_INSERT_BEFORE)) {
|
IDOVERRIDE_LIBRARY_OP_INSERT_BEFORE)) {
|
||||||
|
#ifndef NDEBUG
|
||||||
if (!do_insert) {
|
if (!do_insert) {
|
||||||
printf("Skipping insert override operations in first pass (%s)!\n", op->rna_path);
|
printf("Skipping insert override operations in first pass (%s)!\n", op->rna_path);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -972,6 +974,7 @@ static void rna_property_override_apply_ex(Main *bmain,
|
|||||||
ptr_item_src = &private_ptr_item_src;
|
ptr_item_src = &private_ptr_item_src;
|
||||||
ptr_item_storage = &private_ptr_item_storage;
|
ptr_item_storage = &private_ptr_item_storage;
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
if (ptr_item_dst->type == NULL) {
|
if (ptr_item_dst->type == NULL) {
|
||||||
printf("Failed to find destination sub-item '%s' (%d) of '%s' in new override data '%s'\n",
|
printf("Failed to find destination sub-item '%s' (%d) of '%s' in new override data '%s'\n",
|
||||||
opop->subitem_reference_name,
|
opop->subitem_reference_name,
|
||||||
@ -986,6 +989,7 @@ static void rna_property_override_apply_ex(Main *bmain,
|
|||||||
op->rna_path,
|
op->rna_path,
|
||||||
ptr_src->owner_id->name);
|
ptr_src->owner_id->name);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rna_property_override_operation_apply(bmain,
|
if (!rna_property_override_operation_apply(bmain,
|
||||||
|
Loading…
Reference in New Issue
Block a user