Commit: c075b8bff22073b890679855b3342a57640bfba4
Author: Hans Goudey
Date: Tue Feb 16 12:02:45 2021 -0600
Branches: master
https://developer.blender.org/rBc075b8bff22073b890679855b3342a57640bfba4
Cleanup: Remove use of designated initializers in C++
===================================================================
M source/blender/editors/space_node/node_draw.cc
===================================================================
diff --git a/source/blender/editors/space_node/node_draw.cc
b/source/blender/editors/space_node/node_draw.cc
index 044f3882d07..8662217961c 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -775,10 +775,10 @@ static void node_socket_draw_multi_input(const float
color[4],
const float outline_width = 1.0f;
/* UI_draw_roundbox draws the outline on the outer side, so compensate for
the outline width. */
const rctf rect = {
- .xmin = locx - width + outline_width * 0.5f,
- .xmax = locx + width - outline_width * 0.5f,
- .ymin = locy - height + outline_width * 0.5f,
- .ymax = locy + height - outline_width * 0.5f,
+ locx - width + outline_width * 0.5f,
+ locx + width - outline_width * 0.5f,
+ locy - height + outline_width * 0.5f,
+ locy + height - outline_width * 0.5f,
};
UI_draw_roundbox_corner_set(UI_CNR_ALL);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs