Blender V5.0
blender::nodes::decl Namespace Reference

Classes

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

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)
static void modify_subtype_except_for_storage (bNodeSocket &socket, int subtype, int dimensions)

Function Documentation

◆ basic_types_can_connect()

◆ 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, input, blender::nodes::None, and output.

Referenced by sockets_can_connect().

◆ modify_subtype_except_for_storage() [1/2]

◆ modify_subtype_except_for_storage() [2/2]

void blender::nodes::decl::modify_subtype_except_for_storage ( bNodeSocket & socket,
int subtype,
int dimensions )
static

◆ sockets_can_connect()