Blender V4.3
blender::nodes::decl Namespace Reference

Classes

class  Bool
class  BoolBuilder
class  Collection
class  Color
class  ColorBuilder
class  Custom
class  CustomTypeBuilder
class  Extend
class  ExtendBuilder
class  Float
class  FloatBuilder
class  Geometry
class  GeometryBuilder
class  IDSocketDeclaration
class  Image
class  Int
class  IntBuilder
class  Material
class  Matrix
class  MatrixBuilder
class  Menu
class  MenuBuilder
class  Object
class  Rotation
class  RotationBuilder
class  Shader
class  ShaderBuilder
class  String
class  StringBuilder
class  Texture
class  Vector
class  VectorBuilder

Functions

static bool field_types_are_compatible (const SocketDeclaration &input, const SocketDeclaration &output)
static bool sockets_can_connect (const SocketDeclaration &socket_decl, const bNodeSocket &other_socket)
static bool basic_types_can_connect (const SocketDeclaration &, const bNodeSocket &other_socket)
static void modify_subtype_except_for_storage (bNodeSocket &socket, int new_subtype)
#Custom
SocketDeclarationPtr create_extend_declaration (const eNodeSocketInOut in_out)

Function Documentation

◆ basic_types_can_connect()

◆ create_extend_declaration()

SocketDeclarationPtr blender::nodes::decl::create_extend_declaration ( const eNodeSocketInOut in_out)

◆ field_types_are_compatible()

bool blender::nodes::decl::field_types_are_compatible ( const SocketDeclaration & input,
const SocketDeclaration & output )
static
Note
This function only deals with declarations, not the field status of existing nodes. If the field status of existing nodes was stored on the sockets, an improvement would be to check the existing socket's current status instead of the declaration.

Definition at line 22 of file node_socket_declarations.cc.

References blender::nodes::FieldSource, blender::nodes::SocketDeclaration::input_field_type, blender::nodes::None, and output.

Referenced by sockets_can_connect().

◆ modify_subtype_except_for_storage()

◆ sockets_can_connect()