diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-31 04:54:11 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-31 04:54:11 +0300 |
commit | 762d3a48e860d3425fc45bb0a7d4b86fb8cc836b (patch) | |
tree | c6fdbaeae421ce7a25f8ca4dd33e31075e650f4e /source/blender/editors/space_node/node_templates.cc | |
parent | 49858bf52641831f22e1d5a85b10b8074a449a30 (diff) |
Cleanup: Avoid storing pointers for attribute search callback
It's better to use some local/stable identifiier to avoid relying on
the data not being freed in between creating the search menu and
the exec function. This is similar to c473b2ce8bdbf8fa.
Diffstat (limited to 'source/blender/editors/space_node/node_templates.cc')
-rw-r--r-- | source/blender/editors/space_node/node_templates.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_templates.cc b/source/blender/editors/space_node/node_templates.cc index b63cb2eeee5..e92e0571157 100644 --- a/source/blender/editors/space_node/node_templates.cc +++ b/source/blender/editors/space_node/node_templates.cc @@ -884,7 +884,7 @@ static void ui_node_draw_input( if (node_tree->type == NTREE_GEOMETRY && snode != nullptr) { /* Only add the attribute search in the node editor, in other places there is not * enough context. */ - node_geometry_add_attribute_search_button(*C, *node_tree, *node, inputptr, *row); + node_geometry_add_attribute_search_button(*C, *node, inputptr, *row); } else { uiItemR(sub, &inputptr, "default_value", 0, "", ICON_NONE); |