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:
authorSebastian Parborg <darkdefende@gmail.com>2022-01-14 19:42:28 +0300
committerSebastian Parborg <darkdefende@gmail.com>2022-01-14 19:44:18 +0300
commit5703efab886dd612e6a52f9ac81e157db754b14f (patch)
treeb00f632a771b2b0da9a1c8d9a4bcb0c518cf0bb3 /source/blender/editors/space_node/node_gizmo.cc
parentd723fa3d3165b02db7d6ebd0c90c4c563baec837 (diff)
Fix T94784: Crop node gizmo doesn't work
Fix refactoring mistake in rBcbca71a7cff3 Not the min and max values are initialized properly.
Diffstat (limited to 'source/blender/editors/space_node/node_gizmo.cc')
-rw-r--r--source/blender/editors/space_node/node_gizmo.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_gizmo.cc b/source/blender/editors/space_node/node_gizmo.cc
index 41d13976209..4e5c5694aff 100644
--- a/source/blender/editors/space_node/node_gizmo.cc
+++ b/source/blender/editors/space_node/node_gizmo.cc
@@ -292,7 +292,11 @@ static void gizmo_node_crop_prop_matrix_set(const wmGizmo *gz,
const bool ny = rct.ymin > rct.ymax;
BLI_rctf_resize(&rct, fabsf(matrix[0][0]), fabsf(matrix[1][1]));
BLI_rctf_recenter(&rct, (matrix[3][0] / dims[0]) + 0.5f, (matrix[3][1] / dims[1]) + 0.5f);
- const rctf rct_isect{0, 0, 1, 1};
+ rctf rct_isect{};
+ rct_isect.xmin = 0;
+ rct_isect.xmax = 1;
+ rct_isect.ymin = 0;
+ rct_isect.ymax = 1;
BLI_rctf_isect(&rct_isect, &rct, &rct);
if (nx) {
SWAP(float, rct.xmin, rct.xmax);