Commit 4a5fe73
authored
Use float explicitly for perspective lines to avoid precision loss (#1450)
I was working with the perspective editor and noticed the perspective line
didn't follow the mouse very well, it jumped large increments when far from
the vanishing point. After a bit of investigation, I noticed rad_to_deg was
losing precision because `angle` was implicitly an integer.
Explicitly typing it as a float fixes the issue1 parent 972409e commit 4a5fe73
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments