[Bf-blender-cvs] [7cf192956bb] geometry-nodes-simulation: Move simulation input/output node a bit more into the convex frame

Jacques Lucke noreply at git.blender.org
Fri Nov 25 12:04:22 CET 2022


Commit: 7cf192956bbf2d2ae136f9f046e697a0ce350fb5
Author: Jacques Lucke
Date:   Fri Nov 25 12:04:04 2022 +0100
Branches: geometry-nodes-simulation
https://developer.blender.org/rB7cf192956bbf2d2ae136f9f046e697a0ce350fb5

Move simulation input/output node a bit more into the convex frame

===================================================================

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 7e2d57e1d52..f30c9b0d563 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -3087,10 +3087,10 @@ static void node_draw_sub_context_frames(TreeDrawContext &tree_draw_ctx,
       rctf rect = totr;
       BLI_rctf_pad(&rect, padding, padding);
       if (context_inputs.contains(node)) {
-        rect.xmin = math::interpolate(rect.xmin, rect.xmax, 0.5f);
+        rect.xmin = math::interpolate(totr.xmin, totr.xmax, 0.25f);
       }
       else if (context_outputs.contains(node)) {
-        rect.xmax = math::interpolate(rect.xmin, rect.xmax, 0.5f);
+        rect.xmax = math::interpolate(totr.xmin, totr.xmax, 0.75f);
       }
       add_rect_corner_positions(possible_boundary_positions, rect);
     }



More information about the Bf-blender-cvs mailing list