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:
authorHans Goudey <h.goudey@me.com>2022-09-02 23:49:33 +0300
committerHans Goudey <h.goudey@me.com>2022-09-02 23:49:33 +0300
commit0b4b3abc0bedf83a0c03732f5de8088ca9627b3a (patch)
treef7ac37d4e78105f87b8cda3a58a9a97e3f812bab /source/blender/editors/space_node/node_relationships.cc
parentb903b749442906a15cf5ea1ed9bacb2012ac0b5d (diff)
parent831ed297d0a02c34664d2a5d8367fbacb899a4a2 (diff)
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/editors/space_node/node_relationships.cc')
-rw-r--r--source/blender/editors/space_node/node_relationships.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_relationships.cc b/source/blender/editors/space_node/node_relationships.cc
index 0240aeaeb68..05d0a546b08 100644
--- a/source/blender/editors/space_node/node_relationships.cc
+++ b/source/blender/editors/space_node/node_relationships.cc
@@ -620,7 +620,8 @@ static int link_socket_to_viewer(const bContext &C,
if (viewer_bnode == nullptr) {
/* Create a new viewer node if none exists. */
const int viewer_type = get_default_viewer_type(&C);
- const float2 location{bsocket_to_view.locx + 100, bsocket_to_view.locy};
+ const float2 location{bsocket_to_view.locx / UI_DPI_FAC + 100,
+ bsocket_to_view.locy / UI_DPI_FAC};
viewer_bnode = add_static_node(C, viewer_type, location);
if (viewer_bnode == nullptr) {
return OPERATOR_CANCELLED;