Skip to content

Commit 7b75711

Browse files
authored
need to normalize binary stars' cartesian position to fix wrong parallax effect for binary stars (Stellarium#4596)
1 parent 587cdeb commit 7b75711

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/modules/Star.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ struct Star
445445
pmra = sky_orbit_vel.dot(p2) * 1000.;
446446
pmdec = sky_orbit_vel.dot(q2) * 1000.;
447447
StelUtils::rectToSphe(&ra, &dec, v);
448+
v.normalize();
448449
}
449450
};
450451

0 commit comments

Comments
 (0)