Cleanup: format
This commit is contained in:
parent
3277879085
commit
4924f8cffd
Notes:
blender-bot
2023-05-29 18:25:13 +02:00
Referenced by issue #108141, Regression: Group Insert operator creates invalid links
|
@ -3558,8 +3558,6 @@ void nodeSetActive(bNodeTree *ntree, bNode *node)
|
|||
node->flag |= flags_to_set;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void nodeSetSocketAvailability(bNodeTree *ntree, bNodeSocket *sock, bool is_available)
|
||||
{
|
||||
const bool was_available = (sock->flag & SOCK_UNAVAIL) == 0;
|
||||
|
|
|
@ -88,8 +88,8 @@ struct bNodeSocket *version_node_add_socket_if_not_exist(struct bNodeTree *ntree
|
|||
const char *name);
|
||||
|
||||
/**
|
||||
* The versioning code generally expects `SOCK_IS_LINKED` to be set correctly. This function updates
|
||||
* the flag on all sockets after changes to the node tree.
|
||||
* The versioning code generally expects `SOCK_IS_LINKED` to be set correctly. This function
|
||||
* updates the flag on all sockets after changes to the node tree.
|
||||
*/
|
||||
void version_socket_update_is_used(bNodeTree *ntree);
|
||||
ARegion *do_versions_add_region(int regiontype, const char *name);
|
||||
|
|
|
@ -1293,7 +1293,8 @@ static void std_node_socket_draw(
|
|||
return;
|
||||
}
|
||||
|
||||
if ((sock->in_out == SOCK_OUT) || (sock->flag & SOCK_IS_LINKED) || (sock->flag & SOCK_HIDE_VALUE)) {
|
||||
if ((sock->in_out == SOCK_OUT) || (sock->flag & SOCK_IS_LINKED) ||
|
||||
(sock->flag & SOCK_HIDE_VALUE)) {
|
||||
node_socket_button_label(C, layout, ptr, node_ptr, text);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue