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 <campbell@blender.org>2022-10-06 04:26:48 +0300
committerCampbell Barton <campbell@blender.org>2022-10-06 04:35:28 +0300
commit86352364a60f62ef338655085a4a227e3cd01c5b (patch)
tree39bd5c8f650b30aefa2fe229e81c143b51496e65 /source/blender/editors/include
parent87d737cd792183d409760ab1f0a778abb9f1daa3 (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.h2
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,