Page Menu
Home
Search
Configure Global Search
Log In
Paste
P1922
T83310_snippet
Active
Public
Actions
Authored by
Philipp Oeser (lichtwerk)
on Jan 27 2021, 1:36 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
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) {
Event Timeline
Philipp Oeser (lichtwerk)
created this paste.
Jan 27 2021, 1:36 PM
Philipp Oeser (lichtwerk)
mentioned this in
T83310: UV Transform Tool - broken handles
.
Jan 27 2021, 2:03 PM
Log In to Comment