Cleanup: Clang format
This commit is contained in:
@@ -2305,8 +2305,8 @@ bNodeLink *nodeAddLink(
|
|||||||
ntree->update |= NTREE_UPDATE_LINKS;
|
ntree->update |= NTREE_UPDATE_LINKS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(link->tosock->flag & SOCK_MULTI_INPUT){
|
if (link->tosock->flag & SOCK_MULTI_INPUT) {
|
||||||
link->multi_input_socket_index = node_count_links(ntree,link->tosock) - 1;
|
link->multi_input_socket_index = node_count_links(ntree, link->tosock) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return link;
|
return link;
|
||||||
|
@@ -133,7 +133,10 @@ void MaterialNode::add_link(bNode *from_node, int from_index, bNode *to_node, in
|
|||||||
nodeAddLink(ntree, from_node, from_socket, to_node, to_socket);
|
nodeAddLink(ntree, from_node, from_socket, to_node, to_socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaterialNode::add_link(bNode *from_node, const char* from_label, bNode *to_node, const char* to_label)
|
void MaterialNode::add_link(bNode *from_node,
|
||||||
|
const char *from_label,
|
||||||
|
bNode *to_node,
|
||||||
|
const char *to_label)
|
||||||
{
|
{
|
||||||
bNodeSocket *from_socket = nodeFindSocket(from_node, SOCK_OUT, from_label);
|
bNodeSocket *from_socket = nodeFindSocket(from_node, SOCK_OUT, from_label);
|
||||||
bNodeSocket *to_socket = nodeFindSocket(to_node, SOCK_IN, to_label);
|
bNodeSocket *to_socket = nodeFindSocket(to_node, SOCK_IN, to_label);
|
||||||
|
@@ -48,7 +48,7 @@ class MaterialNode {
|
|||||||
bNodeTree *prepare_material_nodetree();
|
bNodeTree *prepare_material_nodetree();
|
||||||
bNode *add_node(int node_type, int locx, int locy, std::string label);
|
bNode *add_node(int node_type, int locx, int locy, std::string label);
|
||||||
void add_link(bNode *from_node, int from_index, bNode *to_node, int to_index);
|
void add_link(bNode *from_node, int from_index, bNode *to_node, int to_index);
|
||||||
void add_link(bNode *from_node, const char* from_label, bNode *to_node, const char* to_label);
|
void add_link(bNode *from_node, const char *from_label, bNode *to_node, const char *to_label);
|
||||||
bNode *add_texture_node(COLLADAFW::ColorOrTexture &cot, int locx, int locy, std::string label);
|
bNode *add_texture_node(COLLADAFW::ColorOrTexture &cot, int locx, int locy, std::string label);
|
||||||
void setShaderType();
|
void setShaderType();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user