Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-09-25 20:10:47 +0300
committerBastien Montagne <bastien@blender.org>2020-09-25 20:11:23 +0300
commit1f6a1cee74dfc7289a4eba500f3990ea922076df (patch)
tree5d3f8ecb50b337f5ec952189b913fe9dfb6907f9 /source/blender/makesrna/intern/rna_access_compare_override.c
parent756656caffbadac41b16c69ef7eb3437868c98f0 (diff)
LibOverride: Cleanup: reserve debug messages to debug builds.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access_compare_override.c')
-rw-r--r--source/blender/makesrna/intern/rna_access_compare_override.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access_compare_override.c b/source/blender/makesrna/intern/rna_access_compare_override.c
index a5a22101887..0251dc17fcd 100644
--- a/source/blender/makesrna/intern/rna_access_compare_override.c
+++ b/source/blender/makesrna/intern/rna_access_compare_override.c
@@ -886,9 +886,11 @@ static void rna_property_override_apply_ex(Main *bmain,
if (!do_insert != !ELEM(opop->operation,
IDOVERRIDE_LIBRARY_OP_INSERT_AFTER,
IDOVERRIDE_LIBRARY_OP_INSERT_BEFORE)) {
+#ifndef NDEBUG
if (!do_insert) {
printf("Skipping insert override operations in first pass (%s)!\n", op->rna_path);
}
+#endif
continue;
}
@@ -972,6 +974,7 @@ static void rna_property_override_apply_ex(Main *bmain,
ptr_item_src = &private_ptr_item_src;
ptr_item_storage = &private_ptr_item_storage;
+#ifndef NDEBUG
if (ptr_item_dst->type == NULL) {
printf("Failed to find destination sub-item '%s' (%d) of '%s' in new override data '%s'\n",
opop->subitem_reference_name,
@@ -986,6 +989,7 @@ static void rna_property_override_apply_ex(Main *bmain,
op->rna_path,
ptr_src->owner_id->name);
}
+#endif
}
if (!rna_property_override_operation_apply(bmain,