diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-28 17:28:22 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-28 17:28:37 +0300 |
commit | 22f5c05cb39a0296db55e3bb5e45d26e5670f7c1 (patch) | |
tree | 5794fccba38ad9a4d3c0bea884de46afa630004a /source/blender/editors/include | |
parent | 17769489d920f86310464297e8906f34d5ec61b9 (diff) |
Snap Cursor: split 'ED_view3d_cursor_snap_data_get'
Split 'ED_view3d_cursor_snap_data_get' into 'update' and 'get' functions
Sometimes we just want to update and sometimes we just get the result.
Make it clear.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 3f9f26560b2..1e9b68c0920 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -332,10 +332,11 @@ V3DSnapCursorState *ED_view3d_cursor_snap_state_get(void); V3DSnapCursorState *ED_view3d_cursor_snap_active(void); void ED_view3d_cursor_snap_deactive(V3DSnapCursorState *state); void ED_view3d_cursor_snap_prevpoint_set(V3DSnapCursorState *state, const float prev_point[3]); -V3DSnapCursorData *ED_view3d_cursor_snap_data_get(V3DSnapCursorState *state, - const struct bContext *C, - int x, - int y); +void ED_view3d_cursor_snap_data_update(V3DSnapCursorState *state, + const struct bContext *C, + int x, + int y); +V3DSnapCursorData *ED_view3d_cursor_snap_data_get(void); struct SnapObjectContext *ED_view3d_cursor_snap_context_ensure(struct Scene *scene); void ED_view3d_cursor_snap_draw_util(struct RegionView3D *rv3d, const float loc_prev[3], |