68 if (node_tree ==
nullptr) {
73 if (
node ==
nullptr) {
81 const ContextualNodeTreeLogs tree_logs = NodesEvalLog::get_contextual_tree_logs(*snode);
88 tree_logs.foreach_tree_log([&](NodeTreeLog &tree_log) {
89 tree_log.ensure_socket_values();
90 tree_log.ensure_existing_attributes();
103 NodeTreeLog *tree_log = tree_logs.get_main_tree_log(*
node);
107 tree_log->ensure_socket_values();
108 NodeLog *node_log = tree_log->find_node_log(
node->identifier);
109 if (node_log ==
nullptr) {
118 const ValueLog *value_log = tree_log->find_socket_value_log(*input_socket);
119 if (value_log ==
nullptr) {
188 if (item ==
nullptr) {
197 if (node_tree ==
nullptr) {
203 if (
node ==
nullptr) {
214 if (new_type !=
storage.data_type) {
224 if (socket ==
nullptr) {
255 button_placeholder_set(but, placeholder);
262 button_func_search_set_results_are_suggestions(but,
true);
264 button_func_search_set(but,
267 static_cast<void *
>(
data),
#define GEO_NODE_INPUT_NAMED_ATTRIBUTE
#define STRNCPY_UTF8(dst, src)
#define BLI_assert_unreachable()
void append(const T &value)
#define storage(slot, qualifiers)
std::optional< eCustomDataType > attr_type_to_custom_data_type(AttrType attr_type)
bNodeSocket * node_find_enabled_input_socket(bNode &node, StringRef name)
bool allow_procedural_attribute_access(StringRef attribute_name)
BLI_STATIC_ASSERT(std::is_trivially_destructible_v< AttributeSearchData >, "")
void node_geometry_add_attribute_search_button(const bContext &, const bNode &node, PointerRNA &socket_ptr, ui::Layout &layout, const StringRef placeholder)
static Vector< const GeometryAttributeInfo * > get_attribute_info_from_context(const bContext &C, AttributeSearchData &data)
static eCustomDataType data_type_in_attribute_input_node(const eCustomDataType type)
static void attribute_search_update_fn(const bContext *C, void *arg, const char *str, ui::SearchItems *items, const bool is_first)
static void attribute_search_exec_fn(bContext *C, void *data_v, void *item_v)
void update_node_declaration_and_sockets(bNodeTree &ntree, bNode &node, Main *bmain)
void attribute_search_add_items(StringRef str, bool can_create_attribute, Span< const nodes::eval_log::GeometryAttributeInfo * > infos, SearchItems *items, bool is_first)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
char * BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
BMesh const char void * data
wmWindowManager * CTX_wm_manager(const bContext *C)
void ED_undo_push(bContext *C, const char *str, UndoEncodeHints hints=UndoEncodeHints(0))
void BKE_main_ensure_invariants(Main &bmain, std::optional< Span< ID * > > modified_ids=std::nullopt)
SpaceNode * CTX_wm_space_node(const bContext *C)
void BKE_ntree_update_tag_node_property(bNodeTree *ntree, bNode *node)
Main * CTX_data_main(const bContext *C)
bScreen * ED_screen_animation_playing(const wmWindowManager *wm)
#define UI_MENU_ARROW_SEP
struct bNodeTree * edittree
char socket_identifier[MAX_NAME]
std::optional< bke::AttrType > data_type