diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-03-29 20:32:48 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-03-29 20:32:48 +0300 |
commit | 661e6e096648bec6d696853b8e5f50dbb1a38472 (patch) | |
tree | d72d49e41126d3d94fe0007b54d06d7fc8f1142a /source/blender/editors/space_view3d/view3d_gizmo_ruler.c | |
parent | d0dd85a820ff9031f8bb52ccbe71220638736535 (diff) |
Gizmo: Use a utility function to read snap gizmo values
No functional changes.
This makes the `ED_gizmotypes_snap_3d_update` function more specialized.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_gizmo_ruler.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_ruler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c index 870996ddefa..833901b6770 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c @@ -387,7 +387,9 @@ static bool view3d_ruler_item_mousemove(struct Depsgraph *depsgraph, } ED_gizmotypes_snap_3d_update( - snap_gizmo, depsgraph, ruler_info->region, v3d, ruler_info->wm, mval_fl, co, NULL); + snap_gizmo, depsgraph, ruler_info->region, v3d, ruler_info->wm, mval_fl); + + ED_gizmotypes_snap_3d_data_get(snap_gizmo, co, NULL, NULL, NULL); } return true; } |