Blender  V3.3
Classes | Functions
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  String
 
class  StringBuilder
 
class  IDSocketDeclaration
 
class  Object
 
class  Material
 
class  Collection
 
class  Texture
 
class  Image
 
class  Shader
 
class  ShaderBuilder
 
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 &UNUSED(socket_decl), const bNodeSocket &other_socket)
 
static void modify_subtype_except_for_storage (bNodeSocket &socket, int new_subtype)
 

Function Documentation

◆ basic_types_can_connect()

static bool blender::nodes::decl::basic_types_can_connect ( const SocketDeclaration UNUSEDsocket_decl,
const bNodeSocket other_socket 
)
static

◆ field_types_are_compatible()

static 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 18 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()

static void blender::nodes::decl::modify_subtype_except_for_storage ( bNodeSocket socket,
int  new_subtype 
)
static

◆ sockets_can_connect()

static bool blender::nodes::decl::sockets_can_connect ( const SocketDeclaration socket_decl,
const bNodeSocket other_socket 
)
static