Nodes: Adjust reroute node label position to reduce overlap

Moved the label closer to the reroute node to reduce overlap.

Pull Request: https://projects.blender.org/blender/blender/pulls/147991
This commit is contained in:
W_Cloud
2025-10-13 18:19:14 +02:00
committed by Hans Goudey
parent 75eaecf350
commit 07205bf441

View File

@@ -4145,7 +4145,7 @@ static void reroute_node_draw_label(TreeDrawContext &tree_draw_ctx,
const short width = 512; const short width = 512;
const int x = BLI_rctf_cent_x(&node.runtime->draw_bounds) - (width / 2); const int x = BLI_rctf_cent_x(&node.runtime->draw_bounds) - (width / 2);
const int y = node.runtime->draw_bounds.ymax; const int y = node.runtime->draw_bounds.ymax - 4 * UI_SCALE_FAC;
uiBut *label_but = uiDefBut( uiBut *label_but = uiDefBut(
&block, ButType::Label, 0, text, x, y, width, NODE_DY, nullptr, 0, 0, std::nullopt); &block, ButType::Label, 0, text, x, y, width, NODE_DY, nullptr, 0, 0, std::nullopt);