mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Bring flight-plan to front if selected
This commit is contained in:
parent
eb6afbdf02
commit
f6985d9f70
@ -46,7 +46,12 @@ function FlightPlanPath(props: FlightPlanProps) {
|
|||||||
// behind everything than was added before them. Anything added after always
|
// behind everything than was added before them. Anything added after always
|
||||||
// goes on top.
|
// goes on top.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
polylineRef.current?.bringToBack();
|
if (props.selected) {
|
||||||
|
polylineRef.current?.bringToFront();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
polylineRef.current?.bringToBack();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (waypoints == null) {
|
if (waypoints == null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user