forked from bartvdbraak/blender
Minor fixes for some unfounded clang warnings.
This commit is contained in:
parent
939a733659
commit
595ed90fe3
@ -660,6 +660,7 @@ static void draw_group_socket(const bContext *C, SpaceNode *snode, bNodeTree *nt
|
||||
* 1) input: not internal
|
||||
* 2) output: (node type uses const outputs) and (group output is unlinked)
|
||||
*/
|
||||
draw_value = 0;
|
||||
switch (in_out) {
|
||||
case SOCK_IN:
|
||||
draw_value = !(gsock && (gsock->flag & SOCK_INTERNAL));
|
||||
@ -667,8 +668,6 @@ static void draw_group_socket(const bContext *C, SpaceNode *snode, bNodeTree *nt
|
||||
case SOCK_OUT:
|
||||
if (gnode->typeinfo->flag & NODE_CONST_OUTPUT)
|
||||
draw_value = !(gsock && gsock->link);
|
||||
else
|
||||
draw_value = 0;
|
||||
break;
|
||||
}
|
||||
if (draw_value) {
|
||||
|
@ -220,7 +220,7 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node)
|
||||
PointerRNA ptr;
|
||||
bNodeSocket *nsock;
|
||||
float locx, locy;
|
||||
float dy= locy;
|
||||
float dy;
|
||||
int buty;
|
||||
|
||||
/* get "global" coords */
|
||||
|
@ -792,7 +792,7 @@ static int edit_node_invoke_properties(bContext *C, wmOperator *op)
|
||||
static void edit_node_properties_get(wmOperator *op, bNodeTree *ntree, bNode **rnode, bNodeSocket **rsock, int *rin_out)
|
||||
{
|
||||
bNode *node;
|
||||
bNodeSocket *sock;
|
||||
bNodeSocket *sock=NULL;
|
||||
char nodename[32];
|
||||
int sockindex;
|
||||
int in_out;
|
||||
|
Loading…
Reference in New Issue
Block a user