Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-04-03 18:48:46 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-04-03 18:48:46 +0300
commit62f8d9e478b7d6c61a4a8bbd0594e29495938e61 (patch)
treeb00a0c227f5fe7f364a613382bf2add6e88d3648 /source/blender/editors/gizmo_library
parent321eef6a0c0f8ed8671ffa8f9aa9ef2ca9125153 (diff)
Fix T87162: Measure Tool Not Working
The non-enabled gizmo was overwriting the projected coordinate value.
Diffstat (limited to 'source/blender/editors/gizmo_library')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
index 1d18c82d896..2561de3aca9 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
@@ -412,6 +412,7 @@ void ED_gizmotypes_snap_3d_data_get(
wmGizmo *gz, float r_loc[3], float r_nor[3], int r_elem_index[3], int *r_snap_elem)
{
SnapGizmo3D *snap_gizmo = (SnapGizmo3D *)gz;
+ BLI_assert(snap_gizmo->is_enabled);
if (r_loc) {
copy_v3_v3(r_loc, snap_gizmo->loc);
}