diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-06 04:26:48 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-06 04:35:28 +0300 |
commit | 86352364a60f62ef338655085a4a227e3cd01c5b (patch) | |
tree | 39bd5c8f650b30aefa2fe229e81c143b51496e65 /source/blender/editors/include | |
parent | 87d737cd792183d409760ab1f0a778abb9f1daa3 (diff) |
3D View: use float for ED_view3d_project_base & minor changes
Using 'short' was historic (as the value was stored in the Base).
Prefer floats which allow sub-pixel distances to be differentiated.
Also remove IS_CLIPPED assignment as this only made sense when the
values were stored in the Base, without any other ways to check
if projection failed.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 67ace0a7a89..52aa5f56fee 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -459,7 +459,7 @@ void ED_view3d_project_float_v3_m4(const struct ARegion *region, eV3DProjStatus ED_view3d_project_base(const struct ARegion *region, struct Base *base, - short r_co[2]); + float r_co[2]); /* *** short *** */ eV3DProjStatus ED_view3d_project_short_ex(const struct ARegion *region, |