From f189ad1f4b3602e1764994c78c4d906dc12dcc8f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 21 Aug 2018 16:42:12 +1000 Subject: Cleanup: rename gizmo access functions Add float in API names since we may want access to other types. --- source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c') diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c index 0f1d309c927..79339b63777 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c @@ -508,7 +508,7 @@ static int gizmo_cage3d_modal( gz_prop = WM_gizmo_target_property_find(gz, "matrix"); if (gz_prop->type != NULL) { - WM_gizmo_target_property_value_get_array(gz, gz_prop, &gz->matrix_offset[0][0]); + WM_gizmo_target_property_float_get_array(gz, gz_prop, &gz->matrix_offset[0][0]); } if (gz->highlight_part == ED_GIZMO_CAGE3D_PART_TRANSLATE) { @@ -591,7 +591,7 @@ static int gizmo_cage3d_modal( } if (gz_prop->type != NULL) { - WM_gizmo_target_property_value_set_array(C, gz, gz_prop, &gz->matrix_offset[0][0]); + WM_gizmo_target_property_float_set_array(C, gz, gz_prop, &gz->matrix_offset[0][0]); } /* tag the region for redraw */ @@ -605,7 +605,7 @@ static void gizmo_cage3d_property_update(wmGizmo *gz, wmGizmoProperty *gz_prop) { if (STREQ(gz_prop->type->idname, "matrix")) { if (WM_gizmo_target_property_array_length(gz, gz_prop) == 16) { - WM_gizmo_target_property_value_get_array(gz, gz_prop, &gz->matrix_offset[0][0]); + WM_gizmo_target_property_float_get_array(gz, gz_prop, &gz->matrix_offset[0][0]); } else { BLI_assert(0); @@ -628,7 +628,7 @@ static void gizmo_cage3d_exit(bContext *C, wmGizmo *gz, const bool cancel) /* reset properties */ gz_prop = WM_gizmo_target_property_find(gz, "matrix"); if (gz_prop->type != NULL) { - WM_gizmo_target_property_value_set_array(C, gz, gz_prop, &data->orig_matrix_offset[0][0]); + WM_gizmo_target_property_float_set_array(C, gz, gz_prop, &data->orig_matrix_offset[0][0]); } copy_m4_m4(gz->matrix_offset, data->orig_matrix_offset); -- cgit v1.2.3