11#include <fmt/format.h>
51#include "RNA_prototypes.hh"
93 switch (stemp->
type) {
104 dval->
min = int(stemp->
min);
105 dval->
max = int(stemp->
max);
139 ListBaseT<bNodeSocket> *socklist,
144 for (sock = socklist->first(); sock; sock = sock->
next) {
170 ListBaseT<bNodeSocket> *socklist,
177 if (stemp_first ==
nullptr) {
178 for (sock = socklist->first(); sock; sock = nextsock) {
179 nextsock = sock->
next;
186 while (stemp->
type != -1) {
191 for (sock = socklist->first(); sock; sock = nextsock) {
192 nextsock = sock->
next;
198 if (socklist->first_) {
201 sock = socklist->first();
202 while (stemp->
type != -1) {
209 while (stemp->
type != -1) {
224 const bool hide_new_sockets)
227 bNodeSocket *old_socket_with_same_identifier =
nullptr;
232 old_socket_with_same_identifier = &old_socket;
237 if (old_socket_with_same_identifier ==
nullptr) {
239 new_socket = &socket_decl.
build(ntree,
node);
244 if (socket_decl.
matches(*old_socket_with_same_identifier)) {
246 new_socket = old_socket_with_same_identifier;
250 old_socket_with_same_identifier->
identifier[0] =
'\0';
253 if (new_socket == old_socket_with_same_identifier) {
261 if (link.
fromsock == old_socket_with_same_identifier) {
264 else if (link.
tosock == old_socket_with_same_identifier) {
269 if (internal_link.
in == old_socket_with_same_identifier) {
270 internal_link.
in = new_socket;
272 else if (internal_link.
out == old_socket_with_same_identifier) {
273 internal_link.
out = new_socket;
279 new_socket->
flag, old_socket_with_same_identifier->is_user_hidden(),
SOCK_HIDDEN);
281 new_sockets.
add_new(new_socket);
295 old_panel_with_same_identifier = &old_panel;
300 if (old_panel_with_same_identifier ==
nullptr) {
302 panel_decl.
build(new_panel);
305 if (panel_decl.
matches(*old_panel_with_same_identifier)) {
307 new_panel = *old_panel_with_same_identifier;
311 old_panel_with_same_identifier->
identifier = -1;
312 panel_decl.
update_or_build(*old_panel_with_same_identifier, new_panel);
316 const int64_t old_panel_index = old_panel_with_same_identifier - old_panels.
begin();
330 if (socket.
type == socket_decl->socket_type) {
331 return socket_decl->identifier.c_str();
342 for (
const char *identifier_prefix : identifier_prefixes) {
368 switch (
node.type_legacy) {
378 return "From_Min_FLOAT3";
381 return "From_Max_FLOAT3";
384 return "To_Min_FLOAT3";
387 return "To_Max_FLOAT3";
390 return "Steps_FLOAT3";
408 if (socket.is_available()) {
418 if (socket.is_available()) {
438 return extension_socket->is_user_hidden();
450 std::optional<std::pair<animrig::Action *, animrig::Slot *>> action_and_slot =
452 if (!action_and_slot) {
459 for (
const int new_i : new_sockets.
index_range()) {
460 const bNodeSocket &new_socket = *new_sockets[new_i];
461 new_index_by_identifier.
add_new(new_socket.identifier_ustr(), new_i);
470 for (
const int old_i : old_sockets.
index_range()) {
472 const std::optional<int> new_i = new_index_by_identifier.
lookup_try(
473 old_socket.identifier_ustr());
475 removed_indices.
append(old_i);
478 if (new_i == old_i) {
481 moved_indices.
append({old_i, *new_i});
487 const std::string node_path = fmt::format(
"nodes[\"{}\"]",
BLI_str_escape(
node.name));
489 bool animation_changed =
false;
492 for (
const int removed_i : removed_indices) {
493 const std::string old_path = fmt::format(
"{}.{}[{}]", node_path, inout_str, removed_i);
495 animation_changed =
true;
500 auto construct_new_rna_path = [&](
const StringRef old_path) ->
char * {
501 if (!old_path.startswith(node_path)) {
504 for (
const IndexMove &index_move : moved_indices) {
505 const std::string old_path_prefix = fmt::format(
506 "{}.{}[{}]", node_path, inout_str, index_move.old_i);
507 if (!old_path.startswith(old_path_prefix)) {
510 const std::string new_path = fmt::format(
"{}.{}[{}]{}",
514 old_path.
substr(old_path_prefix.size()));
515 animation_changed =
true;
525 if (char *new_path = construct_new_rna_path(fcurve.rna_path())) {
526 fcurve.rna_path_set_move(new_path);
530 if (
char *new_path = construct_new_rna_path(driver_fcurve.rna_path())) {
531 driver_fcurve.rna_path_set_move(new_path);
536 if (animation_changed) {
547 const bool do_id_user)
549 if (!
node.runtime->forward_compatible_versioning_done) {
551 node.runtime->forward_compatible_versioning_done =
true;
555 int new_num_panels = 0;
564 old_inputs.
append(&socket);
569 old_outputs.
append(&socket);
577 MEM_SAFE_DELETE(
node.panel_states_array);
578 node.num_panel_states = new_num_panels;
579 node.panel_states_array = MEM_new_array<bNodePanelState>(new_num_panels, __func__);
591 if (socket_decl->in_out ==
SOCK_IN) {
593 ntree,
node, *socket_decl, remaining_old_inputs, new_inputs, hide_new_sockets);
597 ntree,
node, *socket_decl, remaining_old_outputs, new_outputs, hide_new_sockets);
617 if (!new_inputs.
contains(&old_socket)) {
622 if (!new_outputs.
contains(&old_socket)) {
628 node.inputs.clear_no_delete();
629 node.outputs.clear_no_delete();
652 if (
node.typeinfo->declare) {
653 if (
node.typeinfo->static_declaration->is_context_dependent) {
654 if (!
node.runtime->declaration) {
665 return ELEM(socket_type,
679 return ELEM(socket_type,
699 if (ntype ==
nullptr) {
740 iosock->init_from_socket_instance(sock);
743void ED_init_standard_node_socket_type(bke::bNodeSocketType *);
750 type, subtype, dimensions);
756 stype = MEM_new<bke::bNodeSocketType>(__func__);
759 stype->
label = socket_label;
792void ED_init_node_socket_type_virtual(bke::bNodeSocketType *);
796 const char *socket_idname =
"NodeSocketVirtual";
800 stype = MEM_new<bke::bNodeSocketType>(__func__);
834 r_generated.
scope.
add_value(fmt::format(fmt::runtime(
TIP_(
"Type for {}")), socket.name()))
853 r_generated.
scope.
add_value(fmt::format(
"{} {}",
TIP_(
"Type for"), socket.name())).c_str(),
865 return static_cast<Strip *
>(strip->data);
869 if (
const std::optional<AncestorPointerRNA> ancestor =
871 RNA_SequencerCompositorModifierProperties))
874 Strip *found_strip =
nullptr;
876 if (BLI_findindex(&strip->modifiers, cmd) != -1) {
886 if (
const std::optional<AncestorPointerRNA> ancestor =
887 RNA_struct_search_closest_ancestor_by_type(ptr, RNA_SequencerCompositorEffectProperties))
889 const void *effectdata = ancestor->data;
890 Strip *found_strip =
nullptr;
891 seq::foreach_strip(&ed->seqbase, [&](Strip *strip) {
892 if (strip->effectdata == effectdata) {
911 if (properties_strip) {
928 .
add_value(fmt::format(fmt::runtime(
TIP_(
"Attribute for {}")), socket.name()))
930 socket.description().c_str());
992 *
static_cast<bool *
>(r_value) =
1008 &srna,
"value",
data->value, socket.name().c_str(), socket.description().c_str());
1018 (socket.default_attribute_name && socket.default_attribute_name[0] !=
'\0' ?
1028 r_generated.scope.add_value(fmt::format(fmt::runtime(
TIP_(
"Layer for {}")), socket.name()))
1030 socket.description().c_str());
1041 &srna,
"value",
data->value, socket.name().c_str(), socket.description().c_str());
1056 &srna,
"value",
data->value, socket.name().c_str(), socket.description().c_str());
1068 const_cast<void *
>(socket_value));
1074 const_cast<void *
>(socket_value));
1092 socket.name().c_str(),
1093 socket.description().c_str(),
1112 socket.name().c_str(),
1113 socket.description().c_str(),
1135 socket.name().c_str(),
1136 socket.description().c_str(),
1242 *
static_cast<float *
>(
1263 socket.name().c_str(),
1264 socket.description().c_str(),
1284 socket.name().c_str(),
1285 socket.description().c_str(),
1307 socket.name().c_str(),
1308 socket.description().c_str(),
1322 *
static_cast<int *
>(
1343 socket.name().c_str(),
1344 socket.description().c_str(),
1363 socket.name().c_str(),
1364 socket.description().c_str(),
1386 socket.name().c_str(),
1387 socket.description().c_str(),
1401 *
static_cast<float3 *
>(r_value) =
1423 socket.name().c_str(),
1424 socket.description().c_str(),
1445 socket.name().c_str(),
1446 socket.description().c_str(),
1469 socket.name().c_str(),
1470 socket.description().c_str(),
1480 const int dimensions)
1485 *
static_cast<int3 *
>(r_value) =
1500 socket.name().c_str(),
1501 socket.description().c_str(),
1524 socket.name().c_str(),
1525 socket.description().c_str(),
1560 socket.name().c_str(),
1561 socket.description().c_str(),
1580 socket.name().c_str(),
1581 socket.description().c_str(),
1603 socket.name().c_str(),
1604 socket.description().c_str(),
1617 new (r_value) std::string(
1635 data->value[0] ?
data->value :
nullptr,
1637 socket.name().c_str(),
1638 socket.description().c_str());
1657 data->value[0] ?
data->value :
nullptr,
1659 socket.name().c_str(),
1660 socket.description().c_str());
1681 data->value[0] ?
data->value :
nullptr,
1683 socket.name().c_str(),
1684 socket.description().c_str());
1698 bool &r_default_value_found,
1701 r_default_value_found =
false;
1702 if (menu->has_conflict() || !menu->
enum_items) {
1713 r_default_value_found =
true;
1716 item.
name = item_data.
name.c_str();
1718 new_items[i] = item;
1720 new_items.
last() = {};
1721 return new_items.
data();
1744 bool default_value_found =
false;
1746 data, default_value_found, r_generated);
1750 default_value_found ?
data->value : 0,
1751 socket.name().c_str(),
1752 socket.description().c_str());
1763 bool default_value_found =
false;
1765 data, default_value_found, r_generated);
1769 default_value_found ?
data->value : 0,
1770 socket.name().c_str(),
1771 socket.description().c_str());
1785 bool default_value_found =
false;
1787 data, default_value_found, r_generated);
1791 default_value_found ?
data->value : 0,
1792 socket.name().c_str(),
1793 socket.description().c_str());
1804 *
static_cast<Object **
>(r_value) =
1812 static_cast<Object *
>(
nullptr));
1819 &srna,
"value", RNA_Object, socket.name().c_str(), socket.description().c_str());
1821 socket.socket_data);
1822 if (default_value->value) {
1835 &srna,
"value", RNA_Object, socket.name().c_str(), socket.description().c_str());
1837 socket.socket_data);
1838 if (default_value->value) {
1854 &srna,
"value", RNA_Object, socket.name().c_str(), socket.description().c_str());
1856 socket.socket_data);
1857 if (default_value->value) {
1917 &srna,
"value", RNA_Collection, socket.name().c_str(), socket.description().c_str());
1919 socket.socket_data);
1920 if (default_value->value) {
1946 *
static_cast<Tex **
>(r_value) =
1960 &srna,
"value", RNA_Texture, socket.name().c_str(), socket.description().c_str());
1984 *
static_cast<Image **
>(
1992 static_cast<Image *
>(
nullptr));
1999 &srna,
"value", RNA_Image, socket.name().c_str(), socket.description().c_str());
2001 socket.socket_data);
2002 if (default_value->value) {
2028 *
static_cast<Material **
>(r_value) =
2043 &srna,
"value", RNA_Material, socket.name().c_str(), socket.description().c_str());
2045 socket.socket_data);
2046 if (default_value->value) {
2072 *
static_cast<VFont **
>(
2080 static_cast<VFont *
>(
nullptr));
2087 &srna,
"value", RNA_VectorFont, socket.name().c_str(), socket.description().c_str());
2088 const auto *default_value =
reinterpret_cast<const bNodeSocketValueFont *
>(socket.socket_data);
2089 if (default_value->value) {
2102 &srna,
"value", RNA_VectorFont, socket.name().c_str(), socket.description().c_str());
2103 const auto *default_value =
reinterpret_cast<const bNodeSocketValueFont *
>(socket.socket_data);
2104 if (default_value->value) {
2120 &srna,
"value", RNA_VectorFont, socket.name().c_str(), socket.description().c_str());
2122 socket.socket_data);
2123 if (default_value->value) {
2137 *
static_cast<Scene **
>(
2145 static_cast<Scene *
>(
nullptr));
2155 *
static_cast<Text **
>(
2172 *
static_cast<Mask **
>(
2197 static_cast<bSound *
>(
nullptr));
2204 &srna,
"value", RNA_Sound, socket.name().c_str(), socket.description().c_str());
2206 socket.socket_data);
2207 if (default_value->value) {
Functions and classes to work with Actions.
Functionality to iterate an Action in various ways.
Blender kernel action and pose functionality.
#define SH_NODE_MAP_RANGE
#define CMP_NODE_R_LAYERS
#define STRNCPY_UTF8(dst, src)
ID and Library types, which are fundamental for SDNA.
Object groups, one object can be in many groups at once.
Read Blender memory allocation and freeing.
#define STREQLEN(a, b, n)
#define SET_FLAG_FROM_TEST(value, test, flag)
static const CPPType & get()
MutableSpan< T > allocate_array(int64_t size)
std::optional< Value > lookup_try(const Key &key) const
void add_new(const Key &key, const Value &value)
constexpr T * data() const
constexpr T & last(const int64_t n=0) const
LinearAllocator & allocator()
SocketValueVariant()=default
static SocketValueVariant from(T &&value)
constexpr IndexRange index_range() const
constexpr const char * c_str() const
const char * c_str() const
bool contains(const Key &key) const
void add_new(const Key &key)
void remove_and_reorder(const int64_t index)
void append(const T &value)
IndexRange index_range() const
constexpr StringRef substr(int64_t start, int64_t size) const
bool skip_updating_sockets
Vector< SocketDeclaration * > inputs
bool matches(const bNode &node) const
Vector< SocketDeclaration * > outputs
Vector< ItemDeclarationPtr > all_items
void update_or_build(const bNodePanelState &old_panel, bNodePanelState &new_panel) const
bool matches(const bNodePanelState &panel) const
void build(bNodePanelState &panel) const
virtual bool matches(const bNodeSocket &socket) const =0
virtual bNodeSocket & update_or_build(bNodeTree &ntree, bNode &node, bNodeSocket &socket) const
virtual bNodeSocket & build(bNodeTree &ntree, bNode &node) const =0
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
void foreach_fcurve_in_action_slot(Action &action, slot_handle_t handle, FunctionRef< void(FCurve &fcurve)> callback)
std::optional< std::pair< Action *, Slot * > > get_action_slot_pair(ID &animated_id)
void * socket_value_copy(eNodeSocketDatatype type, const void *src, bool do_id_user)
void node_socket_declarations_update(bNode *node)
void node_modify_socket_type_static(bNodeTree *ntree, bNode *node, bNodeSocket *sock, int type, int subtype)
void node_remove_socket(bNodeTree &ntree, bNode &node, bNodeSocket &sock)
std::optional< StringRefNull > node_static_socket_interface_type_new(int type, int subtype, std::optional< int > dimensions=std::nullopt)
bool node_declaration_ensure_on_outdated_node(bNodeTree &ntree, bNode &node)
void node_register_socket_type(bNodeSocketType &stype)
bNodeSocket * node_add_static_socket(bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out, int type, int subtype, StringRefNull identifier, StringRefNull name)
void node_remove_socket_ex(bNodeTree &ntree, bNode &node, bNodeSocket &sock, bool do_id_user)
std::optional< StringRefNull > node_static_socket_label(int type, int subtype)
std::optional< StringRefNull > node_static_socket_type(int type, int subtype, std::optional< int > dimensions=std::nullopt)
StringRefNull node_socket_sub_type_label(int subtype)
QuaternionBase< float > Quaternion
QuaternionBase< T > to_quaternion(const AxisAngleBase< T, AngleT > &axis_angle)
EulerXYZBase< float > EulerXYZ
static void refresh_node(Main *bmain, bNodeTree &ntree, bNode &node, nodes::NodeDeclaration &node_decl, bool do_id_user)
static void refresh_node_sockets_animation_inout(Main &bmain, bNodeTree &ntree, bNode &node, const eNodeSocketInOut in_out, const Span< bNodeSocket * > old_sockets, const Span< bNodeSocket * > new_sockets)
std::unique_ptr< SocketDeclaration > SocketDeclarationPtr
const EnumPropertyItem compositor_nodes_input_type_items_value[]
const EnumPropertyItem compositor_nodes_input_type_items_fallback[]
const EnumPropertyItem geometry_nodes_input_type_items_value_or_attribute_or_layer[]
void update_node_declaration_and_sockets(bNodeTree &ntree, bNode &node, Main *bmain)
void geometry_nodes_property_update(Main *, Scene *, PointerRNA *ptr)
static void refresh_node_sockets_and_panels(Main *bmain, bNodeTree &ntree, bNode &node, const NodeDeclaration &node_decl, const bool do_id_user)
void build_node_declaration(const bke::bNodeType &typeinfo, NodeDeclaration &r_declaration, const bNodeTree *ntree, const bNode *node)
std::unique_ptr< ItemDeclaration > ItemDeclarationPtr
bool socket_type_supports_attributes(const eNodeSocketDatatype socket_type)
static void do_forward_compat_versioning(bNode &node, const NodeDeclaration &node_decl)
static void refresh_node_socket(bNodeTree &ntree, bNode &node, const SocketDeclaration &socket_decl, Vector< bNodeSocket * > &old_sockets, VectorSet< bNodeSocket * > &new_sockets, const bool hide_new_sockets)
bool socket_type_supports_fields(const eNodeSocketDatatype socket_type)
static bool hide_new_group_input_sockets(const bNode &node)
const EnumPropertyItem geometry_nodes_input_type_items_value[]
ImplicitSharingPtr< Closure > ClosurePtr
static void refresh_node_panel(const PanelDeclaration &panel_decl, Vector< bNodePanelState > &old_panels, bNodePanelState &new_panel)
const EnumPropertyItem geometry_nodes_input_type_items_fallback[]
static const char * get_identifier_from_decl(const char *identifier_prefix, const bNodeSocket &socket, const Span< const SocketDeclaration * > socket_decls)
bool socket_type_supports_grids(const eNodeSocketDatatype socket_type)
const EnumPropertyItem geometry_nodes_input_type_items_value_or_attribute[]
static const char * get_current_socket_identifier_for_future_socket(const bNode &node, const bNodeSocket &socket, const Span< const SocketDeclaration * > socket_decls)
ImplicitSharingPtr< Bundle > BundlePtr
void relations_invalidate_cache(Scene *scene, Strip *strip)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
Editing * editing_get(const Scene *scene)
static bke::bNodeSocketType * make_socket_type_geometry()
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static bNodeSocket * verify_socket_template(bNodeTree *ntree, bNode *node, eNodeSocketInOut in_out, ListBaseT< bNodeSocket > *socklist, bke::bNodeSocketTemplate *stemp)
static void make_common_value_and_attribute_props(StructRNA &srna, const bNodeTreeInterfaceSocket &socket, nodes::GeneratedTreeSrnaData &r_generated)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
static void standard_node_socket_interface_init_socket(ID *, const bNodeTreeInterfaceSocket *interface_socket, bNode *, bNodeSocket *sock, StringRefNull)
static void make_common_fallback_props(StructRNA &srna, const bNodeTreeInterfaceSocket &socket, nodes::GeneratedTreeSrnaData &r_generated)
static bke::bNodeSocketType * make_socket_type_bundle()
void BKE_ntree_update_tag_socket_new(bNodeTree *ntree, bNodeSocket *socket)
static void data_block_pointer_update(Main *bmain, Scene *, PointerRNA *)
static void make_common_attribute_name_prop(StructRNA &srna, const bNodeTreeInterfaceSocket &socket, nodes::GeneratedTreeSrnaData &r_generated)
PropertyRNA * RNA_def_float_color(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
static void standard_node_socket_interface_from_socket(ID *, bNodeTreeInterfaceSocket *iosock, const bNode *, const bNodeSocket *sock)
static bke::bNodeSocketType * make_socket_type_collection()
static bke::bNodeSocketType * make_socket_type_matrix()
static bke::bNodeSocketType * make_socket_type_texture()
static void make_common_value_props(StructRNA &srna, const bNodeTreeInterfaceSocket &socket, nodes::GeneratedTreeSrnaData &r_generated)
std::optional< AncestorPointerRNA > RNA_struct_search_closest_ancestor_by_type(const PointerRNA *ptr, const StructRNA *srna)
static bke::bNodeSocketType * make_socket_type_menu()
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_int_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
static bke::bNodeSocketType * make_socket_type_font()
static bke::bNodeSocketType * make_socket_type_float(PropertySubType subtype)
static bke::bNodeSocketType * make_socket_type_sound()
static bke::bNodeSocketType * make_socket_type_int(PropertySubType subtype)
MatBase< float, 4, 4 > float4x4
static bke::bNodeSocketType * make_socket_type_closure()
static bke::bNodeSocketType * make_socket_type_material()
StructRNA * RNA_struct_find(const char *identifier)
PropertyRNA * RNA_def_pointer_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
static bke::bNodeSocketType * make_socket_type_int_vector(PropertySubType subtype, const int dimensions)
bool BKE_animdata_fix_paths_remove(ID *id, const char *prefix)
bool is_layer_selection_field(const bNodeTreeInterfaceSocket &socket)
void RNA_def_property_pointer_default_runtime(PropertyRNA *prop, uint32_t id_session_uid)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
static bke::bNodeSocketType * make_socket_type_rgba()
static bke::bNodeSocketType * make_standard_socket_type(const eNodeSocketDatatype type, int subtype, std::optional< int > dimensions=std::nullopt)
VecBase< int32_t, 3 > int3
static void make_common_type_prop(StructRNA &srna, const bNodeTreeInterfaceSocket &socket, const EnumPropertyItem *items, const nodes::GeometryNodesInputType default_type, nodes::GeneratedTreeSrnaData &r_generated)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void DEG_id_tag_update(ID *id, unsigned int flags)
BMesh const char void * data
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
static bke::bNodeSocketType * make_socket_type_mask()
static bke::bNodeSocketType * make_socket_type_virtual()
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
static const EnumPropertyItem * enum_property_items_from_menu_node_socket(const bNodeSocketValueMenu *menu, bool &r_default_value_found, nodes::GeneratedTreeSrnaData &r_generated)
static bke::bNodeSocketType * make_socket_type_bool()
const EnumPropertyItem rna_enum_dummy_NULL_items[]
static void verify_socket_template_list(bNodeTree *ntree, bNode *node, eNodeSocketInOut in_out, ListBaseT< bNodeSocket > *socklist, bke::bNodeSocketTemplate *stemp_first)
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
static void set_common_sequencer_update_function(PropertyRNA *prop)
static bke::bNodeSocketType * make_socket_type_scene()
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void ED_init_node_socket_type_virtual(bke::bNodeSocketType *stype)
static bke::bNodeSocketType * make_socket_type_image()
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
static bke::bNodeSocketType * make_socket_type_vector(PropertySubType subtype, const int dimensions)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
static bke::bNodeSocketType * make_socket_type_rotation()
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bNodeSocket * node_add_socket_from_template(bNodeTree *ntree, bNode *node, bke::bNodeSocketTemplate *stemp, eNodeSocketInOut in_out)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
PropertyRNA * RNA_def_float_rotation(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
int bool BLI_str_startswith(const char *__restrict str, const char *__restrict start) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
@ PROP_FORCE_GEOMETRY_EVAL
@ PROP_PATH_SUPPORTS_BLEND_RELATIVE
void RNA_def_property_update_notifier(PropertyRNA *prop, const int noteflag)
static Strip * find_compositor_properties_strip(PointerRNA *ptr, Editing *ed)
void RNA_def_property_update_runtime(PropertyRNA *prop, RNAPropertyUpdateFunc func)
static bke::bNodeSocketType * make_socket_type_string(PropertySubType subtype)
void DEG_relations_tag_update(Main *bmain)
ColorSceneLinear4f< eAlpha::Premultiplied > ColorGeometry4f
VecBase< float, 3 > float3
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void ED_init_standard_node_socket_type(bke::bNodeSocketType *stype)
void register_standard_node_socket_types()
void node_verify_sockets(Main *bmain, bNodeTree *ntree, bNode *node, bool do_id_user)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
static void set_scene_compositor_effect_property_common_properties(PropertyRNA *property)
static bke::bNodeSocketType * make_socket_type_object()
static bke::bNodeSocketType * make_socket_type_text()
ListBaseT< FCurve > drivers
static MatBase identity()
bke::bNodeSocketType * typeinfo
bke::bNodeSocketRuntime * runtime
struct bNodeSocket * next
char * default_attribute_name
ListBaseT< bNodeLink > links
Vector< RuntimeNodeEnumItem > items
Compact definition of a node socket.
ExtensionRNA ext_interface
const CPPType * base_cpp_type
SocketMakeNodesInputSrnaFunction make_geometry_nodes_input_srna
SocketGetCPPValueFunction get_base_cpp_value
std::string subtype_label
void(*) interface_init_socket(ID *id, const bNodeTreeInterfaceSocket *interface_socket, bNode *node, bNodeSocket *socket, StringRefNull data_path)
void(*) free_self(bNodeSocketType *stype)
bool use_link_limits_of_type
SocketMakeNodesInputSrnaFunction make_compositor_nodes_input_srna
SocketGetGeometryNodesCPPValueFunction get_geometry_nodes_cpp_value
const SocketValueVariant * geometry_nodes_default_value
SocketMakeNodesInputSrnaFunction make_scene_compositor_effect_input_srna
void(*) interface_from_socket(ID *id, bNodeTreeInterfaceSocket *interface_socket, const bNode *node, const bNodeSocket *socket)
bNodeSocketTemplate * inputs
bNodeSocketTemplate * outputs
NodeDeclareFunction declare
static QuaternionBase identity()