diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-11-02 06:41:41 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-11-02 06:43:48 +0300 |
commit | 24310441ddc85ecc8dc857ccc75b508db59bd844 (patch) | |
tree | 9a87e2ff0750f171d5ffecdbd317af83d452f313 /source/blender/editors/include/ED_view3d.h | |
parent | 348d7c35a9f9ffb56e716430100a3d167884889c (diff) |
Fix snap cursor still active even when gizmo is not available
The snap cursor continued to appear even when the workspace is changed for example.
So add the region to check in the cursor pool.
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 6d20044d8cf..ebf3316a509 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -277,6 +277,7 @@ typedef struct V3DSnapCursorState { uchar color_line[4]; uchar color_point[4]; uchar color_box[4]; + struct ARegion *region; /* Forces the cursor to be drawn only in this specific region. */ float *prevpoint; float box_dimensions[3]; short snap_elem_force; /* If zero, use scene settings. */ |