From 6bbeac97fd1ba245b80a6d5cc973839d1100ae39 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Mon, 11 Aug 2025 18:22:03 +0200 Subject: [PATCH] Fix: RNA: Failing assert on console auto-complete Looks like this was caused by 3de916ca25. Steps to reproduce were: - Switch to the Scripting workspace - Paste: `C.screen.areas[5].spaces[0].rna_type.properties['show_region_asset_shelf'].` - Press tab The RNA property getter should always return a value, even when empty. That's what other such getters do as well. --- source/blender/makesrna/intern/rna_rna.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/makesrna/intern/rna_rna.cc b/source/blender/makesrna/intern/rna_rna.cc index 110af6824ff..46606bdcd78 100644 --- a/source/blender/makesrna/intern/rna_rna.cc +++ b/source/blender/makesrna/intern/rna_rna.cc @@ -912,6 +912,9 @@ static void rna_Property_deprecated_note_get(PointerRNA *ptr, char *value) if (const DeprecatedRNA *deprecated = RNA_property_deprecated(prop)) { strcpy(value, deprecated->note); } + else { + value[0] = '\0'; + } } static void rna_Property_deprecated_version_get(PointerRNA *ptr, int *value)