[Bf-blender-cvs] [ee51283da19] master: LibOverride: Tweak messages when some sub-item is not found when applying overrides.

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


Commit: ee51283da1973d1f147f7c51bd7506e4dd804289
Author: Bastien Montagne
Date:   Fri Sep 25 15:30:25 2020 +0200
Branches: master
https://developer.blender.org/rBee51283da1973d1f147f7c51bd7506e4dd804289

LibOverride: Tweak messages when some sub-item is not found when applying overrides.

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

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 6fd1609e77b..a5a22101887 100644
--- a/source/blender/makesrna/intern/rna_access_compare_override.c
+++ b/source/blender/makesrna/intern/rna_access_compare_override.c
@@ -973,14 +973,16 @@ static void rna_property_override_apply_ex(Main *bmain,
       ptr_item_storage = &private_ptr_item_storage;
 
       if (ptr_item_dst->type == NULL) {
-        printf("Failed to find destination sub-item '%s' 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_index,
                op->rna_path,
                ptr_dst->owner_id->name);
       }
       if (ptr_item_src->type == NULL) {
-        printf("Failed to find source sub-item '%s' of '%s' in old override data '%s'\n",
+        printf("Failed to find source sub-item '%s' (%d) of '%s' in old override data '%s'\n",
                opop->subitem_local_name,
+               opop->subitem_local_index,
                op->rna_path,
                ptr_src->owner_id->name);
       }



More information about the Bf-blender-cvs mailing list