|
Blender V4.5
|
Functions | |
| static void | write_node_socket_interface (BlendWriter *writer, const bNodeSocket *sock) |
| static bNodeSocket * | make_socket (bNodeTree *ntree, const eNodeSocketInOut in_out, const StringRef idname, const StringRef name, const StringRef identifier) |
| static StringRef | get_legacy_socket_subtype_idname (StringRef idname, const void *socket_data) |
| static void | construct_interface_as_legacy_sockets (bNodeTree *ntree) |
| static void | write_legacy_sockets (BlendWriter *writer, bNodeTree *ntree) |
| static void | legacy_socket_interface_free (bNodeSocket *sock) |
| static void | cleanup_legacy_sockets (bNodeTree *ntree) |
| static void | update_node_location_legacy (bNodeTree &ntree) |
| static void | write_compositor_legacy_properties (bNodeTree &node_tree) |
| static void | write_compositor_legacy_storage (BlendWriter *writer, bNode &node) |
|
static |
Definition at line 651 of file node.cc.
References BLI_listbase_clear(), legacy_socket_interface_free(), LISTBASE_FOREACH_MUTABLE, and MEM_freeN().
Referenced by blender::bke::ntree_blend_write().
|
static |
Socket interface reconstruction for forward compatibility. To enable previous Blender versions to read the new interface DNA data, construct the bNodeSocket inputs/outputs lists. This discards any information about panels and alternating input/output order, but all functional information is preserved for executing node trees.
Definition at line 571 of file node.cc.
References bNodeSocket::attribute_domain, bNodeTreeInterfaceSocket::attribute_domain, BLI_addtail(), BLI_assert, BLI_listbase_is_empty(), BLI_strdup_null(), bNodeSocket::default_attribute_name, bNodeTreeInterfaceSocket::default_attribute_name, bNodeSocket::default_value, bNodeSocket::description, bNodeTreeInterfaceSocket::description, bNodeSocket::flag, bNodeTreeInterfaceSocket::flag, blender::bke::node_interface::get_item_as(), get_legacy_socket_subtype_idname(), bNodeTreeInterfaceSocket::identifier, IDP_CopyProperty(), make_socket(), bNodeTreeInterfaceSocket::name, NODE_INTERFACE_SOCKET_HIDE_IN_MODIFIER, NODE_INTERFACE_SOCKET_HIDE_VALUE, NODE_INTERFACE_SOCKET_INPUT, NODE_INTERFACE_SOCKET_OUTPUT, node_socket_copy_default_value_data(), bNodeSocket::prop, bNodeTreeInterfaceSocket::properties, SET_FLAG_FROM_TEST, SOCK_HIDE_IN_MODIFIER, SOCK_HIDE_VALUE, SOCK_IN, SOCK_OUT, bNodeTreeInterfaceSocket::socket_data, bNodeTreeInterfaceSocket::socket_type, STRNCPY(), bNodeTree::tree_interface, and bNodeSocket::typeinfo.
Referenced by blender::bke::ntree_blend_write().
|
static |
Definition at line 502 of file node.cc.
References PROP_ACCELERATION, PROP_ANGLE, PROP_COLOR_TEMPERATURE, PROP_DIRECTION, PROP_DISTANCE, PROP_EULER, PROP_FACTOR, PROP_FREQUENCY, PROP_PERCENTAGE, PROP_TIME, PROP_TIME_ABSOLUTE, PROP_TRANSLATION, PROP_UNSIGNED, PROP_VELOCITY, PROP_WAVELENGTH, bNodeSocketValueFloat::subtype, bNodeSocketValueInt::subtype, and bNodeSocketValueVector::subtype.
Referenced by construct_interface_as_legacy_sockets().
|
static |
Definition at line 636 of file node.cc.
References bNodeSocket::default_attribute_name, bNodeSocket::default_value, IDP_FreeProperty_ex(), MEM_freeN(), bNodeSocket::prop, and bNodeSocket::runtime.
Referenced by cleanup_legacy_sockets().
|
static |
Definition at line 473 of file node.cc.
References blender::StringRefBase::copy_utf8_truncated(), bNodeSocket::flag, bNodeSocket::identifier, blender::bke::bNodeSocketType::idname, bNodeSocket::idname, bNodeSocket::in_out, bNodeSocket::limit, MEM_callocN(), bNodeSocket::name, blender::bke::node_socket_set_typeinfo(), blender::bke::node_socket_type_find(), bNodeSocket::runtime, SOCK_COLLAPSED, SOCK_CUSTOM, SOCK_IN, bNodeSocket::storage, and bNodeSocket::type.
Referenced by construct_interface_as_legacy_sockets().
|
static |
Definition at line 666 of file node.cc.
References bNode::parent.
Referenced by blender::bke::node_tree_blend_write().
|
static |
Definition at line 680 of file node.cc.
References NodeBlurData::bokeh, blender::math::ceil(), CMP_CHAN_A, CMP_CHAN_RGB, CMP_NODE_ALPHAOVER, CMP_NODE_ANTIALIASING, CMP_NODE_BILATERALBLUR, CMP_NODE_BLUR, CMP_NODE_BOKEHBLUR, CMP_NODE_BOKEHIMAGE, CMP_NODE_CHANNEL_MATTE, CMP_NODE_CHROMA_MATTE, CMP_NODE_COLOR_MATTE, CMP_NODE_COLOR_SPILL, CMP_NODE_COLORBALANCE, CMP_NODE_COLORCORRECTION, CMP_NODE_CROP, CMP_NODE_DBLUR, CMP_NODE_DENOISE, CMP_NODE_DESPECKLE, CMP_NODE_DIFF_MATTE, CMP_NODE_DILATEERODE, CMP_NODE_DIST_MATTE, CMP_NODE_FLIP, CMP_NODE_GLARE, CMP_NODE_ID_MASK, CMP_NODE_INPAINT, CMP_NODE_INVERT, CMP_NODE_KEYING, CMP_NODE_KEYINGSCREEN, CMP_NODE_KUWAHARA, CMP_NODE_LENS_DISTORTION_HORIZONTAL, CMP_NODE_LENSDIST, CMP_NODE_LUMA_MATTE, CMP_NODE_MASK, CMP_NODE_MASK_BOX, CMP_NODE_MASK_ELLIPSE, CMP_NODE_MASK_FLAG_MOTION_BLUR, CMP_NODE_MASK_FLAG_NO_FEATHER, CMP_NODE_PIXELATE, CMP_NODE_PLANETRACKDEFORM, CMP_NODE_SPLIT, CMP_NODE_STABILIZE2D, CMP_NODE_SUNBEAMS, CMP_NODE_SWITCH, CMP_NODE_TIME, CMP_NODE_TONEMAP, CMP_NODE_VECBLUR, CMP_NODE_ZCOMBINE, copy_v3_v3(), NodeLensDist::distortion_type, NodeBlurData::fac, flag, input, invert(), MEM_callocN(), blender::bke::node_find_socket(), NTREE_COMPOSIT, NodeBlurData::samples, NodeBlurData::sizex, NodeBlurData::sizey, SOCK_IN, bNodeTree::type, bNodeSocketValueBoolean::value, bNodeSocketValueFloat::value, bNodeSocketValueInt::value, bNodeSocketValueRGBA::value, bNodeSocketValueVector::value, NodeTwoXYs::x1, NodeTwoXYs::x2, NodeTwoXYs::y1, and NodeTwoXYs::y2.
Referenced by blender::bke::node_tree_blend_write().
|
static |
Definition at line 1223 of file node.cc.
References BLO_write_struct_by_name(), CMP_NODE_ALPHAOVER, CMP_NODE_ANTIALIASING, CMP_NODE_BILATERALBLUR, CMP_NODE_BOKEHIMAGE, CMP_NODE_CHROMA_MATTE, CMP_NODE_COLOR_MATTE, CMP_NODE_COLORBALANCE, CMP_NODE_COLORCORRECTION, CMP_NODE_CROP, CMP_NODE_DBLUR, CMP_NODE_DIFF_MATTE, CMP_NODE_LUMA_MATTE, CMP_NODE_MASK, CMP_NODE_MASK_BOX, CMP_NODE_MASK_ELLIPSE, CMP_NODE_SUNBEAMS, CMP_NODE_VECBLUR, MEM_freeN(), bNode::storage, bNode::type_legacy, and bNode::typeinfo.
Referenced by blender::bke::node_blend_write_storage().
|
static |
Definition at line 625 of file node.cc.
References LISTBASE_FOREACH, and write_node_socket_interface().
Referenced by blender::bke::node_tree_blend_write().
|
static |
Definition at line 459 of file node.cc.
References BLO_write_string(), BLO_write_struct, bNodeSocket::default_attribute_name, IDP_BlendWrite(), bNodeSocket::prop, and blender::bke::write_node_socket_default_value().
Referenced by write_legacy_sockets().