Skip to content

Commit 33326e5

Browse files
committed
optimize orbit drawing condition for highlighted satellites
1 parent 374aa0d commit 33326e5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,8 @@ int main(void)
18181818
bool is_hl = (active_sat == &satellites[i]);
18191819
if (!(is_pov_mode && &satellites[i] == selected_sat))
18201820
{
1821-
draw_orbit_3d(&satellites[i], current_epoch, is_hl, sat_alpha, global_orbit_step);
1821+
if (is_hl)
1822+
draw_orbit_3d(&satellites[i], current_epoch, is_hl, sat_alpha, global_orbit_step);
18221823
}
18231824

18241825
if (is_hl && !(is_pov_mode && &satellites[i] == selected_sat))

0 commit comments

Comments
 (0)