diff options
author | Bastien Montagne <bastien@blender.org> | 2021-03-25 18:57:32 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-03-25 18:57:32 +0300 |
commit | 25c41186514c5bcd946ef1bf8aeb17d11c9910de (patch) | |
tree | 4493fae762830ddd0fce9ff82e5ce49be71c709b /source/blender/makesrna/intern/rna_rna.c | |
parent | 0f13bded46feb7f16c21e95321a1a07998930c19 (diff) |
LibOverride: Silence noisy warnings in console.
That one skiped the move to CLOG a few weeks ago, could spam a lot in
the console in some cases.
Diffstat (limited to 'source/blender/makesrna/intern/rna_rna.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index d8336e79064..f7a7b745493 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -20,6 +20,8 @@ #include <stdlib.h> +#include <CLG_log.h> + #include "DNA_ID.h" #include "BLI_utildefines.h" @@ -132,6 +134,8 @@ const EnumPropertyItem rna_enum_property_unit_items[] = { # include "BKE_idprop.h" # include "BKE_lib_override.h" +static CLG_LogRef LOG_COMPARE_OVERRIDE = {"rna.rna_compare_override"}; + /* Struct */ static void rna_Struct_identifier_get(PointerRNA *ptr, char *value) @@ -1366,11 +1370,11 @@ static int rna_property_override_diff_propptr(Main *bmain, /* In case one of the owner of the checked property is tagged as needing resync, do * not change the 'match reference' status of its ID pointer properties overrides, * since many non-matching ones are likely due to missing resync. */ - printf( - "%s: Not checking matching ID pointer properties, since owner %s is tagged as " - "needing resync.\n", - __func__, - id_a->name); + CLOG_INFO(&LOG_COMPARE_OVERRIDE, + 4, + "Not checking matching ID pointer properties, since owner %s is tagged as " + "needing resync.\n", + id_a->name); } else if (id_a->override_library != NULL && id_a->override_library->reference == id_b) { opop->flag |= IDOVERRIDE_LIBRARY_FLAG_IDPOINTER_MATCH_REFERENCE; |