diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-09 10:27:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-09 10:42:36 +0300 |
commit | 246efd7286f6187e4dd4b3edcc79cccb1746bb1d (patch) | |
tree | e2fd2e8c3ebc7033a913ca6cf41eff386ca1e7d0 /source/blender/editors/uvedit/uvedit_ops.c | |
parent | 645298be29601b0e772a15fe04c570a31df4a25d (diff) |
Fix UV selection threshold which ignored image aspect and zoom level
Selecting UVs wasn't properly scaling based on the zoom or image aspect.
This now matches vertex selection in the 3D view.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_ops.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index aac5b96f737..167acf7da18 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -187,28 +187,6 @@ void ED_object_assign_active_image(Main *bmain, Object *ob, int mat_nr, Image *i /** \} */ /* -------------------------------------------------------------------- */ -/** \name Space Conversion - * \{ */ - -void uvedit_pixel_to_float(SpaceImage *sima, float pixeldist, float r_dist[2]) -{ - int width, height; - - if (sima) { - ED_space_image_get_size(sima, &width, &height); - } - else { - width = IMG_SIZE_FALLBACK; - height = IMG_SIZE_FALLBACK; - } - - r_dist[0] = pixeldist / width; - r_dist[1] = pixeldist / height; -} - -/** \} */ - -/* -------------------------------------------------------------------- */ /** \name Live Unwrap Utilities * \{ */ |