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>2020-01-06 14:42:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-06 15:08:27 +0300
commit98e4fbc7cc9e9bd6492e7bbb82e48dcf7b4d0bac (patch)
treef303835de167e61257725f9601242f520351b3dc /source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c
parentb7acb8690a4d189868c6e0b57057b6fcd8a5a96d (diff)
Gizmo: use compatible scale values between 2D/3D gizmos
Make the UV editor gizmos the same size as the 3D view.
Diffstat (limited to 'source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c
index 723be3cfe6b..05b58903e04 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c
@@ -91,13 +91,7 @@ static void gizmo_calc_rect_view_scale(const wmGizmo *gz, const float dims[3], f
static void gizmo_calc_rect_view_margin(const wmGizmo *gz, const float dims[3], float margin[3])
{
- float handle_size;
- if (gz->parent_gzgroup->type->flag & WM_GIZMOGROUPTYPE_3D) {
- handle_size = 0.15f;
- }
- else {
- handle_size = GIZMO_RESIZER_SIZE;
- }
+ const float handle_size = 0.15f;
// XXX, the scale isn't taking offset into account, we need to calculate scale per handle!
// handle_size *= gz->scale_final;