50 using namespace nodes::geo_eval_log;
58 if (node_tree ==
nullptr) {
63 if (
node ==
nullptr) {
71 const ContextualGeoTreeLogs tree_logs = GeoNodesLog::get_contextual_tree_logs(*snode);
78 tree_logs.foreach_tree_log([&](GeoTreeLog &
tree_log) {
82 if (!names.
add(attribute->name)) {
88 attributes.
append(attribute);
93 GeoTreeLog *
tree_log = tree_logs.get_main_tree_log(*
node);
99 if (node_log ==
nullptr) {
109 if (value_log ==
nullptr) {
112 if (
const GeometryInfoLog *
geo_log =
dynamic_cast<const GeometryInfoLog *
>(value_log)) {
115 if (names.
add(attribute.name)) {
116 attributes.
append(&attribute);
177 if (item ==
nullptr) {
186 if (node_tree ==
nullptr) {
192 if (
node ==
nullptr) {
212 if (socket ==
nullptr) {
258 static_cast<void *
>(
data),
SpaceNode * CTX_wm_space_node(const bContext *C)
Main * CTX_data_main(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
void BKE_main_ensure_invariants(Main &bmain, std::optional< blender::Span< ID * > > modified_ids=std::nullopt)
#define GEO_NODE_INPUT_NAMED_ATTRIBUTE
void BKE_ntree_update_tag_node_property(bNodeTree *ntree, bNode *node)
#define BLI_assert_unreachable()
#define BLI_STATIC_ASSERT(a, msg)
char * STRNCPY(char(&dst)[N], const char *src)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
bScreen * ED_screen_animation_playing(const wmWindowManager *wm)
void ED_undo_push(bContext *C, const char *str)
void UI_but_placeholder_set(uiBut *but, blender::StringRef placeholder_text)
void UI_but_func_search_set_results_are_suggestions(uiBut *but, bool value)
void UI_but_func_search_set(uiBut *but, uiButSearchCreateFn search_create_fn, uiButSearchUpdateFn search_update_fn, void *arg, bool free_arg, uiFreeArgFunc search_arg_free_fn, uiButHandleFunc search_exec_fn, void *active)
uiBut * uiDefIconTextButR(uiBlock *block, int type, int retval, int icon, std::optional< blender::StringRefNull > str, int x, int y, short width, short height, PointerRNA *ptr, blender::StringRefNull propname, int index, float min, float max, std::optional< blender::StringRef > tip)
void UI_but_func_search_set_sep_string(uiBut *but, const char *search_sep_string)
uiBlock * uiLayoutGetBlock(uiLayout *layout)
void append(const T &value)
Vector< const GeometryAttributeInfo * > existing_attributes
void ensure_existing_attributes()
void ensure_socket_values()
Map< int32_t, GeoNodeLog > nodes
ValueLog * find_socket_value_log(const bNodeSocket &query_socket)
geo_log::GeoTreeLog * tree_log
void * MEM_callocN(size_t len, const char *str)
bNodeSocket * node_find_enabled_input_socket(bNode &node, StringRef name)
bool allow_procedural_attribute_access(StringRef attribute_name)
static Vector< const GeometryAttributeInfo * > get_attribute_info_from_context(const bContext &C, AttributeSearchData &data)
void node_geometry_add_attribute_search_button(const bContext &, const bNode &node, PointerRNA &socket_ptr, uiLayout &layout, const StringRef placeholder)
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, uiSearchItems *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)
void attribute_search_add_items(StringRef str, bool can_create_attribute, Span< const nodes::geo_eval_log::GeometryAttributeInfo * > infos, uiSearchItems *items, bool is_first)
#define UI_MENU_ARROW_SEP
struct bNodeTree * edittree
char socket_identifier[MAX_NAME]
std::optional< eCustomDataType > data_type