43#include "RNA_prototypes.hh"
55 if (typeinfo ==
nullptr) {
119 const void *src_socket_data,
220 socket_data_write_impl(writer, get_socket_data_as<SocketDataType>(socket));
238 (*data)->enum_items =
nullptr;
239 (*data)->runtime_flag = 0;
245 {
"NodeSocketFloat",
"NodeSocketFloatPixel"},
246 {
"NodeSocketVector",
"NodeSocketVectorPixel"},
247 {
"NodeSocketVector2D",
"NodeSocketVectorPixel2D"},
248 {
"NodeSocketVector4D",
"NodeSocketVectorPixel4D"},
249 {
"NodeSocketInt",
"NodeSocketIntPixel"},
250 {
"NodeSocketIntVector2D",
"NodeSocketIntVectorPixel2D"},
251 {
"NodeSocketIntVector3D",
"NodeSocketIntVectorPixel3D"}};
257 bool data_read =
false;
259 socket_data_read_data_impl(reader, reinterpret_cast<SocketDataType **>(&socket.socket_data));
263 if (socket.is_pixel_socket_forward_compat) {
264 const Map<StringRef, StringRef> &subtype_none_to_pixel_map = subtype_none_to_pixel();
265 const StringRef *pixel_type = subtype_none_to_pixel_map.lookup_ptr(socket.socket_type);
266 if (pixel_type != nullptr) {
267 MEM_SAFE_DELETE(socket.socket_type);
268 socket.socket_type = BLI_strdupn(pixel_type->data(), pixel_type->size());
269 SocketDataType *socket_data = reinterpret_cast<SocketDataType *>(socket.socket_data);
270 if constexpr (requires { socket_data->subtype; }) {
272 socket_data->subtype = PROP_PIXEL;
280 if (!data_read && socket.socket_data) {
282 socket.socket_data =
nullptr;
374 socket_type = socket_type_from_data_impl(get_socket_data_as<SocketDataType>(socket));
436 socket_data_foreach_id_impl(data, get_socket_data_as<SocketDataType>(socket));
514 panel_init(dst_panel, src_panel.items(), flag, generate_uid);
530 MEM_SAFE_DELETE(socket.
name_);
543 panel.clear(do_id_user);
544 MEM_SAFE_DELETE(panel.
name_);
588 {
"NodeSocketFloatPixel",
"NodeSocketFloat"},
589 {
"NodeSocketVectorPixel",
"NodeSocketVector"},
590 {
"NodeSocketVectorPixel2D",
"NodeSocketVector2D"},
591 {
"NodeSocketVectorPixel4D",
"NodeSocketVector4D"},
592 {
"NodeSocketIntPixel",
"NodeSocketInt"},
593 {
"NodeSocketIntVectorPixel2D",
"NodeSocketIntVector2D"},
594 {
"NodeSocketIntVectorPixel3D",
"NodeSocketIntVector3D"}};
601 SocketDataType *socket_data = reinterpret_cast<SocketDataType *>(socket.socket_data);
602 if constexpr (requires { socket_data->subtype; }) {
604 socket_data->subtype = subtype;
632 MEM_SAFE_DELETE(original_type);
735 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
760 return panel.items();
774 return this->name_ ? this->name_ :
"";
779 return this->description_ ? this->description_ :
"";
802bool bNodeTreeInterfaceSocket::set_socket_type(
const StringRef new_socket_type)
808 if (this->socket_data !=
nullptr) {
811 MEM_SAFE_DELETE(this->socket_type);
826 const bool supports_dynamic = supports_fields || supports_grids;
827 const bool supports_lists =
true;
828 switch (this->structure_type) {
833 if (!supports_fields) {
838 if (!supports_grids) {
843 if (!supports_dynamic) {
848 if (!supports_lists) {
862 if (typeinfo_a ==
nullptr || typeinfo_b ==
nullptr) {
871 return typeinfo_a->
type == typeinfo_b->
type;
874void bNodeTreeInterfaceSocket::update_socket_type()
878 "Cannot change socket base type without replacing socket data");
880 if (new_socket_type != this->socket_type) {
881 MEM_SAFE_DELETE(this->socket_type);
893void bNodeTreeInterfaceSocket::init_from_socket_instance(
const bNodeSocket *socket)
897 if (this->socket_data !=
nullptr) {
900 MEM_SAFE_DELETE(this->socket_type);
912 return this->name_ ? this->name_ :
"";
917 return this->description_ ? this->description_ :
"";
920IndexRange bNodeTreeInterfacePanel::items_range()
const
927 return Span(items_array, items_num);
937 return items().contains(&item);
942 bool is_child =
false;
947 if (&titem == &item) {
959 return items().first_index_try(&item);
969 if (&titem == &item) {
976 return found ?
index : -1;
997 std::queue<bNodeTreeInterfacePanel *> queue;
1004 while (!queue.empty()) {
1014 if (tpanel->contains(item)) {
1024int bNodeTreeInterfacePanel::find_valid_insert_position_for_item(
1027 const bool sockets_above_panels = !(this->flag &
1035 if (sockets_above_panels) {
1056 if (is_output_a && !is_output_b) {
1065 if (must_be_before(*items[i], item)) {
1069 int max_pos = items.
size();
1071 if (must_be_before(item, *items[i])) {
1077 return std::clamp(initial_pos, min_pos, max_pos);
1083 insert_item(item, this->items_num);
1099 if (old_items.
data()) {
1100 MEM_delete(old_items.
data());
1106 const int position = this->item_position(item);
1118 MEM_delete(old_items.
data());
1127void bNodeTreeInterfacePanel::clear(
bool do_id_user)
1132 MEM_SAFE_DELETE(items_array);
1133 items_array =
nullptr;
1139 const int old_position = this->item_position(item);
1140 if (!this->items().index_range().
contains(old_position)) {
1144 new_position = find_valid_insert_position_for_item(item, new_position);
1145 new_position = std::min(std::max(new_position, 0), items_num);
1146 if (old_position == new_position) {
1151 if (old_position < new_position) {
1154 old_position + 1, new_position - old_position - 1);
1157 moved_items.
begin(), moved_items.
end(), this->items().drop_front(old_position).data());
1158 this->items()[new_position - 1] = tmp;
1162 new_position, old_position - new_position);
1165 moved_items.
begin(), moved_items.
end(), this->items().drop_front(old_position + 1).data());
1166 this->items()[new_position] = tmp;
1178 if (include_self &&
fn(this->item) ==
false) {
1181 stack.
push(this->items());
1184 const ItemSpan current_items = stack.
pop();
1186 for (
const int index : current_items.index_range()) {
1188 if (
fn(*item) ==
false) {
1195 if (
index < current_items.size() - 1) {
1196 const ItemSpan remaining_items = current_items.drop_front(
index + 1);
1197 stack.
push(remaining_items);
1200 stack.
push(panel->items());
1207void bNodeTreeInterfacePanel::foreach_item(
1213 if (include_self &&
fn(this->item) ==
false) {
1216 stack.
push(this->items());
1219 const ItemSpan current_items = stack.
pop();
1221 for (
const int index : current_items.index_range()) {
1223 if (
fn(*item) ==
false) {
1231 if (
index < current_items.size() - 1) {
1232 const ItemSpan remaining_items = current_items.drop_front(
index + 1);
1233 stack.
push(remaining_items);
1236 stack.
push(panel->items());
1245 if (this->items().is_empty()) {
1294 new_socket->
flag = flag;
1303 const bNode &from_node,
1305 const std::optional<StringRef> name,
1306 const std::optional<eNodeSocketInOut> in_out)
1308 ntree.ensure_topology_cache();
1312 const bool is_input = in_out ? bool(*in_out &
SOCK_IN) : from_sock.is_input();
1319 if (from_node.is_group() && from_sock.is_input() == is_input) {
1322 group->ensure_interface_cache();
1324 from_sock.is_input() ? *group->interface_inputs()[from_sock.index()] :
1325 *group->interface_outputs()[from_sock.index()];
1339 if (!
decl->description.empty()) {
1340 description =
decl->description;
1351 iosock = ntree.
tree_interface.add_socket(io_name, description, socket_type, flag,
nullptr);
1359 if (iosock ==
nullptr) {
1398 src_tree, src_socket,
"default_value") :
1401 switch (socket_type) {
1427 node_storage.
dimensions = socket_value.dimensions;
1428 copy_v4_v4(node_storage.vector, socket_value.value);
1437 node_storage.
dimensions = socket_value.dimensions;
1444 switch (dst_tree.
type) {
1505 node->id = ptr ? &ptr->
id :
nullptr;
1514 node->id = ptr ? &ptr->id :
nullptr;
1522 node->id = ptr ? &ptr->
id :
nullptr;
1531 node->id = ptr ? &ptr->id :
nullptr;
1550 node_storage.
value = socket_value.value;
1557 node->id = ptr ? &ptr->
id :
nullptr;
1587 switch (socket_type) {
1682 if (!socket_typeinfo) {
1686 const std::string socket_idname = socket_typeinfo->
idname.
string();
1687 const void *src_value = src_socket ? src_socket->
default_value :
nullptr;
1723 new_panel->
flag = flag;
1729 if (item_reference ==
nullptr) {
1733 MEM_delete(item_reference->
items);
1734 MEM_delete(item_reference);
1739void bNodeTreeInterface::init_data()
1741 this->runtime = MEM_new<bke::bNodeTreeInterfaceRuntime>(__func__);
1742 this->tag_missing_runtime_data();
1750 this->runtime = MEM_new<bke::bNodeTreeInterfaceRuntime>(__func__);
1751 this->tag_missing_runtime_data();
1754void bNodeTreeInterface::free_data()
1756 MEM_delete(this->runtime);
1759 this->root_panel.clear(
false);
1762void bNodeTreeInterface::write(
BlendWriter *writer)
1777 this->runtime = MEM_new<bke::bNodeTreeInterfaceRuntime>(__func__);
1778 this->tag_missing_runtime_data();
1784 int count = this->active_index;
1799 int count = this->active_index;
1811void bNodeTreeInterfaceItem::set_selected(
const bool select)
1813 switch (this->item_type) {
1830 const bool deselect_original)
1832 if (deselect_original) {
1834 original_active->set_selected(
false);
1837 this->active_index = 0;
1840 if (&titem == item) {
1841 this->active_index = count;
1842 item->set_selected(
true);
1860 if (parent ==
nullptr) {
1861 parent = &root_panel;
1866 this->next_uid++, name, description, socket_type, flag);
1868 parent->add_item(new_socket->
item);
1871 this->tag_items_changed();
1882 if (parent ==
nullptr) {
1883 parent = &root_panel;
1888 this->next_uid++, name, description, socket_type, flag);
1893 this->tag_items_changed();
1902 if (parent ==
nullptr) {
1903 parent = &root_panel;
1909 parent->add_item(new_panel->
item);
1912 this->tag_items_changed();
1922 if (parent ==
nullptr) {
1923 parent = &root_panel;
1932 this->tag_items_changed();
1940 if (parent ==
nullptr) {
1941 parent = &root_panel;
1947 parent->add_item(*citem);
1949 this->tag_items_changed();
1958 if (parent ==
nullptr) {
1959 parent = &root_panel;
1965 parent->insert_item(*citem,
position);
1967 this->tag_items_changed();
1975 if (parent ==
nullptr) {
1978 if (move_content_to_parent) {
1979 int position = parent->item_position(item);
1983 this->move_item_to_parent(*child, parent,
position++);
1986 if (parent->remove_item(item,
true)) {
1987 this->tag_items_changed();
1994void bNodeTreeInterface::clear_items()
1996 root_panel.clear(
true);
1997 this->tag_items_changed();
2004 if (parent ==
nullptr) {
2008 if (parent->move_item(item, new_position)) {
2009 this->tag_items_changed();
2020 if (new_parent ==
nullptr) {
2021 new_parent = &this->root_panel;
2026 if (src_item.contains_recursive(new_parent->
item)) {
2032 if (parent ==
nullptr) {
2036 if (parent == new_parent) {
2037 if (parent->move_item(item, new_position)) {
2038 this->tag_items_changed();
2045 if (parent->remove_item(item,
false)) {
2046 new_parent->insert_item(item, new_position);
2047 this->tag_items_changed();
2059bool bNodeTreeInterface::items_cache_is_available()
const
2061 return !this->runtime->items_cache_mutex_.is_dirty();
2064void bNodeTreeInterface::ensure_items_cache()
const
2068 runtime.items_cache_mutex_.
ensure([&]() {
2070 runtime.items_.clear();
2071 runtime.inputs_.clear();
2072 runtime.outputs_.clear();
2080 runtime.items_.add_new(&item);
2083 runtime.inputs_.add_new(socket);
2086 runtime.outputs_.add_new(socket);
2094int bNodeTreeInterface::input_index_by_identifier(
const StringRef identifier)
const
2096 BLI_assert(this->items_cache_is_available());
2097 return this->runtime->inputs_.index_of_try_as(identifier);
2100int bNodeTreeInterface::output_index_by_identifier(
const StringRef identifier)
const
2102 BLI_assert(this->items_cache_is_available());
2103 return this->runtime->outputs_.index_of_try_as(identifier);
2106void bNodeTreeInterface::tag_interface_changed()
2108 this->runtime->interface_changed_.store(
true);
2111bool bNodeTreeInterface::requires_dependent_tree_updates()
const
2113 return this->runtime->interface_changed_.load(std::memory_order_relaxed);
2116void bNodeTreeInterface::tag_items_changed()
2118 this->tag_interface_changed();
2119 this->runtime->items_cache_mutex_.
tag_dirty();
2122void bNodeTreeInterface::tag_items_changed_generic()
2125 this->tag_items_changed();
2128void bNodeTreeInterface::tag_item_property_changed()
2130 this->tag_interface_changed();
2133void bNodeTreeInterface::tag_missing_runtime_data()
2135 this->tag_items_changed();
2138void bNodeTreeInterface::reset_interface_changed()
2140 this->runtime->interface_changed_.store(
false);
#define IDP_BlendDataRead(reader, prop)
#define BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(data_, func_call_)
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
#define BLO_read_struct(reader, struct_name, ptr_p)
Object groups, one object can be in many groups at once.
#define BLI_assert_unreachable()
#define SET_FLAG_FROM_TEST(value, test, flag)
#define BLI_assert_msg(a, msg)
constexpr Span drop_front(int64_t n) const
constexpr Span slice(int64_t start, int64_t size) const
constexpr const T & first() const
constexpr int64_t size() const
constexpr const T * end() const
constexpr IndexRange index_range() const
constexpr const T * begin() const
constexpr Span take_front(int64_t n) const
void ensure(const FunctionRef< void()> compute_cache)
constexpr IndexRange()=default
const Value & lookup(const Key &key) const
constexpr T * data() const
constexpr MutableSpan drop_front(const int64_t n) const
constexpr MutableSpan take_front(const int64_t n) const
constexpr int64_t size() const
constexpr IndexRange index_range() const
void push(const T &value)
constexpr const char * c_str() const
const std::string & string() const
StringRefNull ref() const
void append(const T &value)
const nodes::SocketDeclaration * declaration
constexpr bool is_empty() const
constexpr int64_t size() const
void copy_unsafe(char *dst) const
constexpr const char * data() const
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str)
bool contains(const VArray< bool > &varray, const IndexMask &indices_to_check, bool value)
void item_write_struct(BlendWriter *writer, bNodeTreeInterfaceItem &item)
static void item_copy(bNodeTreeInterfaceItem &dst, const bNodeTreeInterfaceItem &src, int flag, UidGeneratorFn generate_uid)
static void pixel_subtype_forward_compat(BlendWriter *writer, bNodeTreeInterfaceItem &item)
static void socket_set_subtype(bNodeTreeInterfaceSocket &socket, const PropertySubType subtype)
static const Map< StringRef, StringRef > & subtype_pixel_to_none()
FunctionRef< int()> UidGeneratorFn
static size_t item_struct_size(const bNodeTreeInterfaceItem &item)
static void item_free(bNodeTreeInterfaceItem &item, const bool do_id_user)
static void item_write_data(BlendWriter *writer, bNodeTreeInterfaceItem &item)
static Span< bNodeTreeInterfaceItem * > item_children(bNodeTreeInterfaceItem &item)
static void item_read_data(BlendDataReader *reader, bNodeTreeInterfaceItem &item)
static void item_foreach_id(LibraryForeachIDData *data, bNodeTreeInterfaceItem &item)
static void panel_init(bNodeTreeInterfacePanel &panel, const Span< const bNodeTreeInterfaceItem * > items_src, const int flag, UidGeneratorFn generate_uid)
static StringRefNull socket_type_from_data(const bNodeTreeInterfaceSocket &socket)
StringRefNull socket_type_from_data_impl(const T &)
static void socket_data_read_data(BlendDataReader *reader, bNodeTreeInterfaceSocket &socket)
void socket_data_foreach_id_impl(LibraryForeachIDData *, T &)
static void * make_socket_data(const StringRef socket_type)
static void socket_data_free(bNodeTreeInterfaceSocket &socket, const bool do_id_user)
static void socket_data_write(BlendWriter *writer, bNodeTreeInterfaceSocket &socket)
static void socket_data_foreach_id(LibraryForeachIDData *data, bNodeTreeInterfaceSocket &socket)
bool socket_data_to_static_type(const StringRef socket_type, const Fn &fn)
static void socket_data_copy(bNodeTreeInterfaceSocket &dst, const bNodeTreeInterfaceSocket &src, int flag)
static const Map< StringRef, StringRef > & subtype_none_to_pixel()
static void socket_data_copy_ptr(bNodeTreeInterfaceSocket &dst, const void *src_socket_data, int flag)
static bool is_supported_socket_type(const StringRef socket_type)
void socket_data_write_impl(BlendWriter *writer, bNodeSocketValueFloat &data)
void socket_data_read_data_impl(BlendDataReader *reader, T **data)
T & get_item_as(bNodeTreeInterfaceItem &item)
static bNodeTreeInterfaceSocket * make_socket(const int uid, const StringRef name, const StringRef description, const StringRef socket_type, const NodeTreeInterfaceSocketFlag flag)
void item_reference_free(bNodeTreeInterfaceItemReference *item_reference)
static bNode * create_proxy_implicit_scene_frame_node(bContext &C, bNodeTree &tree)
static std::string get_socket_property_path(const bNodeTree &tree, const bNodeSocket &socket, const StringRefNull prop)
static bNodeTreeInterfacePanel * make_panel(const int uid, const StringRef name, const StringRef description, const NodeTreeInterfacePanelFlag flag)
bNode * create_proxy_implicit_input_node(eNodeSocketDatatype socket_type, NodeDefaultInputType default_input, bContext &C, bNodeTree &tree)
static std::string socket_basepath(const bNodeTree &tree, const bNodeSocket &socket)
bNodeTreeInterfaceSocket * add_interface_socket_from_node(bNodeTree &ntree, const bNode &from_node, const bNodeSocket &from_sock, std::optional< StringRef > name=std::nullopt, std::optional< eNodeSocketInOut > in_out=std::nullopt)
static std::string get_node_property_path(const bNodeTree &tree, const bNode &node, const StringRefNull prop)
bNode * create_proxy_converter_node(eNodeSocketDatatype socket_type, const bNodeTree &src_tree, const bNodeSocket *src_socket, bContext &C, bNodeTree &dst_tree, Vector< AnimationBasePathChange > &anim_basepaths)
bNode * create_proxy_const_input_node(eNodeSocketDatatype socket_type, const bNodeTree &src_tree, const bNodeSocket &src_socket, bContext &C, bNodeTree &dst_tree, Vector< AnimationBasePathChange > &anim_basepaths)
void free(Subdiv *subdiv)
void * socket_value_copy(eNodeSocketDatatype type, const void *src, bool do_id_user)
bNodeSocketType NodeSocketTypeUndefined
void * socket_value_new(eNodeSocketDatatype type, int subtype=0)
bNode * node_add_node(const bContext *C, bNodeTree &ntree, UString idname, std::optional< int > unique_identifier=std::nullopt)
void socket_value_free(eNodeSocketDatatype type, void *data, bool do_id_user)
bNodeSocketType * node_socket_type_find(StringRef idname)
bNodeSocketType * node_socket_type_find_static(int type, int subtype=0)
void socket_value_copy_content(eNodeSocketDatatype type, void *dst, const void *src, bool do_id_user)
bNodeSocket * node_find_socket(bNode &node, eNodeSocketInOut in_out, UString identifier)
std::optional< StringRefNull > node_static_socket_type(int type, int subtype, std::optional< int > dimensions=std::nullopt)
StringRefNull node_socket_label(const bNodeSocket &sock)
bool node_is_static_socket_type(const bNodeSocketType &stype)
bool socket_type_supports_default_input_type(const bke::bNodeSocketType &socket_type, const NodeDefaultInputType input_type)
bool socket_type_supports_fields(const eNodeSocketDatatype socket_type)
bool socket_type_supports_grids(const eNodeSocketDatatype socket_type)
void BLO_read_struct_with_type_size(BlendDataReader *reader, T **ptr_p, FunctionRef< size_t(const T &data)> type_size_fn)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void IDP_FreeProperty_ex(IDProperty *prop, bool do_id_user)
char * STRNCPY(char(&dst)[N], const char *src)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void BLO_read_pointer_array_and_validate_size(BlendDataReader *reader, T **ptr_p, SizeT *array_size)
std::optional< std::string > RNA_path_from_ID_to_property(const PointerRNA *ptr, PropertyRNA *prop)
MINLINE void copy_v3_v3_int(int r[3], const int a[3])
void IDP_BlendWrite(BlendWriter *writer, const IDProperty *prop)
void IDP_foreach_property(IDProperty *id_property_root, int type_filter, FunctionRef< void(IDProperty *id_property)> callback)
std::optional< std::string > RNA_path_from_ID_to_struct(const PointerRNA *ptr)
char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
char * BLI_strdupn(const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLO_read_data_invalidate(BlendDataReader *reader, const char *message)
NodeTreeInterfacePanelFlag
@ NODE_INTERFACE_PANEL_ALLOW_SOCKETS_AFTER_PANELS
@ NODE_INTERFACE_PANEL_SELECT
@ LIB_ID_CREATE_NO_USER_REFCOUNT
BMesh const char void * data
void BKE_ntree_update_after_single_tree_change(Main &bmain, bNodeTree &modified_tree, const NodeTreeUpdateExtraParams ¶ms={})
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
static bool is_same_socket_base_type(const StringRef socket_type_a, const StringRef socket_type_b)
void BKE_ntree_update_tag_node_property(bNodeTree *ntree, bNode *node)
Main * CTX_data_main(const bContext *C)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
@ NODE_DEFAULT_INPUT_ID_INDEX_FIELD
@ NODE_DEFAULT_INPUT_HANDLE_RIGHT_FIELD
@ NODE_DEFAULT_INPUT_SCENE_FRAME
@ NODE_DEFAULT_INPUT_SELF_OBJECT
@ NODE_DEFAULT_INPUT_POSITION_FIELD
@ NODE_DEFAULT_INPUT_HANDLE_LEFT_FIELD
@ NODE_DEFAULT_INPUT_INDEX_FIELD
@ NODE_DEFAULT_INPUT_INSTANCE_TRANSFORM_FIELD
@ NODE_DEFAULT_INPUT_NORMAL_FIELD
@ NODE_DEFAULT_INPUT_VALUE
char * BLI_strdup_null(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_MALLOC
ColorSceneLinear4f< eAlpha::Premultiplied > ColorGeometry4f
MINLINE void copy_v4_v4(float r[4], const float a[4])
NodeTreeInterfaceSocketFlag
@ NODE_INTERFACE_SOCKET_SINGLE_VALUE_ONLY_LEGACY
@ NODE_INTERFACE_SOCKET_HIDE_VALUE
@ NODE_INTERFACE_SOCKET_OPTIONAL_LABEL
@ NODE_INTERFACE_SOCKET_SELECT
@ NODE_INTERFACE_SOCKET_OUTPUT
@ NODE_INTERFACE_SOCKET_PANEL_TOGGLE
@ NODE_INTERFACE_SOCKET_MENU_EXPANDED
@ NODE_INTERFACE_SOCKET_INPUT
IDProperty * IDP_CopyProperty_ex(const IDProperty *prop, int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLO_read_string(BlendDataReader *reader, char **ptr_p)
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void write_pointer_array(int64_t num, const void *data)
void write_string(const char *data)
void write_struct_cast(const void *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct(const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
bke::bNodeSocketType * typeinfo
bke::bNodeSocketRuntime * runtime
NodeTreeInterfaceItemType item_type
NodeTreeInterfacePanelFlag flag
bNodeTreeInterfaceItem item
bNodeTreeInterfaceItem ** items_array
NodeTreeInterfaceSocketFlag flag
bNodeTreeInterfaceItem item
NodeSocketInterfaceStructureType structure_type
NodeDefaultInputType default_input
char is_pixel_socket_forward_compat
char * default_attribute_name
struct IDProperty * properties
bNodeTreeInterfacePanel root_panel
bNodeTreeInterface tree_interface
ListBaseT< bNodeSocket > inputs
void(*) draw_color_simple(const bNodeSocketType *socket_type, float *r_color)
void(*) interface_from_socket(ID *id, bNodeTreeInterfaceSocket *interface_socket, const bNode *node, const bNodeSocket *socket)
bNodeTreeInterfaceItem ** items