From a5c35fb27f090bb716a3bb49a69a56be80dff6d3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 28 Jan 2014 03:52:21 +1100 Subject: Code cleanup: use booleans where appropriate --- source/blender/editors/space_node/node_edit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_node/node_edit.c') diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index 0f70c5a5972..360b394d406 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -613,12 +613,12 @@ void snode_update(SpaceNode *snode, bNode *node) void ED_node_set_active(Main *bmain, bNodeTree *ntree, bNode *node) { - int was_active_texture = (node->flag & NODE_ACTIVE_TEXTURE); + const bool was_active_texture = (node->flag & NODE_ACTIVE_TEXTURE) != 0; nodeSetActive(ntree, node); if (node->type != NODE_GROUP) { - int was_output = (node->flag & NODE_DO_OUTPUT); + const bool was_output = (node->flag & NODE_DO_OUTPUT) != 0; int do_update = 0; /* generic node group output: set node as active output */ @@ -1995,7 +1995,7 @@ static int node_clipboard_paste_exec(bContext *C, wmOperator *op) bNodeLink *link; int num_nodes; float center[2]; - int is_clipboard_valid, all_nodes_valid; + bool is_clipboard_valid, all_nodes_valid; /* validate pointers in the clipboard */ is_clipboard_valid = BKE_node_clipboard_validate(); -- cgit v1.2.3