Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-08-23 02:03:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-23 02:09:38 +0300
commitadfb9ec87cebafe61e8870c5dfd7593d32e9eb0a (patch)
tree1cc57a24b047bfb152fe458ec3594f6b8de28cef /source/blender/editors/space_node
parent1de7717ed711c53755a2f1393ab103fd98bf6b32 (diff)
Cleanup: const args, naming, doxy groups, clang-format
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/node_draw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 91fc5ca5045..642f90407fe 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -779,7 +779,7 @@ static void node_socket_draw(const bContext *C,
immAttr4fv(col_id, color);
immAttr1u(shape_id, flags);
- immAttr1f(size_id, size);
+ immAttr1f(size_id, size);
immAttr4fv(outline_col_id, outline_color);
immVertex2f(pos_id, sock->locx, sock->locy);
}
@@ -944,7 +944,8 @@ void node_draw_sockets(View2D *v2d,
uint col_id = GPU_vertformat_attr_add(format, "color", GPU_COMP_F32, 4, GPU_FETCH_FLOAT);
uint shape_id = GPU_vertformat_attr_add(format, "flags", GPU_COMP_U32, 1, GPU_FETCH_INT);
uint size_id = GPU_vertformat_attr_add(format, "size", GPU_COMP_F32, 1, GPU_FETCH_FLOAT);
- uint outline_col_id = GPU_vertformat_attr_add(format, "outlineColor", GPU_COMP_F32, 4, GPU_FETCH_FLOAT);
+ uint outline_col_id = GPU_vertformat_attr_add(
+ format, "outlineColor", GPU_COMP_F32, 4, GPU_FETCH_FLOAT);
GPU_blend(true);
GPU_program_point_size(true);
@@ -1018,7 +1019,7 @@ void node_draw_sockets(View2D *v2d,
/* go back and draw selected sockets */
if (selected_input_len + selected_output_len > 0) {
/* outline for selected sockets */
-
+
selected = true;
immBegin(GPU_PRIM_POINTS, selected_input_len + selected_output_len);