Page MenuHome
Paste P1922

T83310_snippet
ActivePublic

Authored by Philipp Oeser (lichtwerk) on Jan 27 2021, 1:36 PM.
diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
index be5f488d759..8b32f8261ec 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
@@ -1094,6 +1094,10 @@ static int gizmo_cage2d_modal(bContext *C,
transform_pivot_set_m4(matrix_scale,
(const float[3]){pivot[0] * dims[0], pivot[1] * dims[1], 0.0f});
mul_m4_m4m4(gz->matrix_offset, data->orig_matrix_offset, matrix_scale);
+
+ PropertyRNA *prop_value = RNA_struct_find_property(&gz->op_data->ptr, "value");
+ RNA_property_float_set_array(
+ &gz->op_data->ptr, prop_value, (float[3]){scale[0], scale[1], scale[1]});
}
if (gz_prop->type != NULL) {