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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-10-03 05:24:09 +0300
committerHans Goudey <h.goudey@me.com>2020-10-03 05:24:09 +0300
commit29a85682a0395f599f0500216061d4302493e800 (patch)
treeef2e6444c9249cf9df5d2db24387b83010eeab63 /source
parent743eca0f316d1ec2ef16e6066d7cfc5233c92657 (diff)
Fix stack use after scope error after recent cleanup
An error adding search to an existing button, caused by my own error in rBa4aa94c41cb79e9.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index a4b6004687f..8854ab4235b 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -2658,10 +2658,10 @@ uiBut *ui_but_add_search(
uiBut *but, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop)
{
/* for ID's we do automatic lookup */
+ PointerRNA sptr;
if (!searchprop) {
if (RNA_property_type(prop) == PROP_POINTER) {
StructRNA *ptype = RNA_property_pointer_type(ptr, prop);
- PointerRNA sptr;
search_id_collection(ptype, &sptr, &searchprop);
searchptr = &sptr;
}