Blender V4.5
blender::bke::forward_compat Namespace Reference

Functions

static void write_node_socket_interface (BlendWriter *writer, const bNodeSocket *sock)
static bNodeSocketmake_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)

Function Documentation

◆ cleanup_legacy_sockets()

void blender::bke::forward_compat::cleanup_legacy_sockets ( bNodeTree * ntree)
static

◆ construct_interface_as_legacy_sockets()

void blender::bke::forward_compat::construct_interface_as_legacy_sockets ( bNodeTree * ntree)
static

◆ get_legacy_socket_subtype_idname()

◆ legacy_socket_interface_free()

void blender::bke::forward_compat::legacy_socket_interface_free ( bNodeSocket * sock)
static

◆ make_socket()

◆ update_node_location_legacy()

void blender::bke::forward_compat::update_node_location_legacy ( bNodeTree & ntree)
static

Definition at line 666 of file node.cc.

References bNode::parent.

Referenced by blender::bke::node_tree_blend_write().

◆ write_compositor_legacy_properties()

void blender::bke::forward_compat::write_compositor_legacy_properties ( bNodeTree & node_tree)
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().

◆ write_compositor_legacy_storage()

◆ write_legacy_sockets()

void blender::bke::forward_compat::write_legacy_sockets ( BlendWriter * writer,
bNodeTree * ntree )
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().

◆ write_node_socket_interface()

void blender::bke::forward_compat::write_node_socket_interface ( BlendWriter * writer,
const bNodeSocket * sock )
static