I tried a few different solutions and simplifications to the uses of the node_add_node
function, but I still don't understand the coordinate spaces apparently, because
this solution is the best I came up with.
This patch is against the 3.3 branch.
Differential D15864
Fix T100767: Geometry nodes viewer node placed incorrectly Authored by Hans Goudey (HooglyBoogly) on Sep 2 2022, 8:06 PM. Tags Subscribers None
Details I tried a few different solutions and simplifications to the uses of the node_add_node This patch is against the 3.3 branch.
Diff Detail
Event TimelineComment Actions With the suggested edit it seems good to me! The socket location seems to be in view space, so dividing by UI_DPI_FAC brings them into the coordinate space of the node editor. This is consistent with what we're doing everywhere else with the cursor location before calling functions that add nodes. Here's the comparison:
| |||||||||||||||||||||