[Bf-blender-cvs] [1f6a1cee74d] master: LibOverride: Cleanup: reserve debug messages to debug builds.

Bastien Montagne noreply at git.blender.org
Fri Sep 25 19:11:34 CEST 2020


Commit: 1f6a1cee74dfc7289a4eba500f3990ea922076df
Author: Bastien Montagne
Date:   Fri Sep 25 19:10:47 2020 +0200
Branches: master
https://developer.blender.org/rB1f6a1cee74dfc7289a4eba500f3990ea922076df

LibOverride: Cleanup: reserve debug messages to debug builds.

===================================================================

M	source/blender/makesrna/intern/rna_access_compare_override.c

===================================================================

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,



More information about the Bf-blender-cvs mailing list