diff options
author | Hans Goudey <h.goudey@me.com> | 2021-11-17 02:20:31 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-11-17 02:20:31 +0300 |
commit | 8290edefadcbbacc46807166743741b130e70dd5 (patch) | |
tree | b4f6093b5d6d71bd8f7fe2eadae2278cd08caf11 /source/blender/editors | |
parent | 2f39b45e8cb59f4362d86c9ae1246ea5740e0bb8 (diff) |
Cleanup: Use bool instead of int
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_node/node_edit.cc | 10 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_intern.hh | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc index 3d44d893b88..f36ded22a39 100644 --- a/source/blender/editors/space_node/node_edit.cc +++ b/source/blender/editors/space_node/node_edit.cc @@ -1192,7 +1192,7 @@ static bool cursor_isect_multi_input_socket(const float cursor[2], const bNodeSo } /* type is SOCK_IN and/or SOCK_OUT */ -int node_find_indicated_socket( +bool node_find_indicated_socket( SpaceNode *snode, bNode **nodep, bNodeSocket **sockp, const float cursor[2], int in_out) { rctf rect; @@ -1224,7 +1224,7 @@ int node_find_indicated_socket( if (node == visible_node(snode, &rect)) { *nodep = node; *sockp = sock; - return 1; + return true; } } } @@ -1232,7 +1232,7 @@ int node_find_indicated_socket( if (node == visible_node(snode, &rect)) { *nodep = node; *sockp = sock; - return 1; + return true; } } } @@ -1245,7 +1245,7 @@ int node_find_indicated_socket( if (node == visible_node(snode, &rect)) { *nodep = node; *sockp = sock; - return 1; + return true; } } } @@ -1253,7 +1253,7 @@ int node_find_indicated_socket( } } - return 0; + return false; } /* ****************** Link Dimming *********************** */ diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh index cb2980b7db5..137b2a2a88a 100644 --- a/source/blender/editors/space_node/node_intern.hh +++ b/source/blender/editors/space_node/node_intern.hh @@ -265,11 +265,11 @@ bool composite_node_editable(struct bContext *C); bool node_has_hidden_sockets(struct bNode *node); void node_set_hidden_sockets(struct SpaceNode *snode, bNode *node, int set); int node_render_changed_exec(bContext *, struct wmOperator *); -int node_find_indicated_socket(struct SpaceNode *snode, - struct bNode **nodep, - struct bNodeSocket **sockp, - const float cursor[2], - int in_out); +bool node_find_indicated_socket(struct SpaceNode *snode, + struct bNode **nodep, + struct bNodeSocket **sockp, + const float cursor[2], + int in_out); float node_link_dim_factor(const struct View2D *v2d, const struct bNodeLink *link); bool node_link_is_hidden_or_dimmed(const struct View2D *v2d, const struct bNodeLink *link); |