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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user