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:
authorCampbell Barton <ideasman42@gmail.com>2018-09-21 03:29:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-21 03:30:55 +0300
commit7deb38eec6988dce64a7179ad1b72daa35cb060d (patch)
treeb3dc2bbbfad1200bded7521c618f62e888cdcd54 /source/blender/editors/gizmo_library
parentfbc837b2f8e165f313a16843cfef54620a6d86d3 (diff)
Gizmo: fix incorrect dial clip scaling
Failed with obvious error when the dials scale wasn't 1.0
Diffstat (limited to 'source/blender/editors/gizmo_library')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c
index a6252cd55bd..dfa6c35da28 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c
@@ -367,7 +367,7 @@ static void gizmo_dial_draw_select(const bContext *C, wmGizmo *gz, int select_id
copy_v3_v3(clip_plane, rv3d->viewinv[2]);
clip_plane[3] = -dot_v3v3(rv3d->viewinv[2], gz->matrix_basis[3]);
- clip_plane[3] += DIAL_CLIP_BIAS * gz->scale_final;
+ clip_plane[3] += DIAL_CLIP_BIAS;
glEnable(GL_CLIP_DISTANCE0);
}
@@ -393,7 +393,7 @@ static void gizmo_dial_draw(const bContext *C, wmGizmo *gz)
copy_v3_v3(clip_plane, rv3d->viewinv[2]);
clip_plane[3] = -dot_v3v3(rv3d->viewinv[2], gz->matrix_basis[3]);
- clip_plane[3] += DIAL_CLIP_BIAS * gz->scale_final;
+ clip_plane[3] += DIAL_CLIP_BIAS;
glEnable(GL_CLIP_DISTANCE0);
}