diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-02 23:49:33 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-02 23:49:33 +0300 |
commit | 0b4b3abc0bedf83a0c03732f5de8088ca9627b3a (patch) | |
tree | f7ac37d4e78105f87b8cda3a58a9a97e3f812bab /source/blender/editors/space_node | |
parent | b903b749442906a15cf5ea1ed9bacb2012ac0b5d (diff) | |
parent | 831ed297d0a02c34664d2a5d8367fbacb899a4a2 (diff) |
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_relationships.cc | 3 |
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; |