/// <summary> /// Creates a new Meneuver Node Gizmo if needed /// </summary> internal static void CreateNodeGizmo(this ManeuverNode node) { if (node.attachedGizmo == null) { node.AttachGizmo(MapView.ManeuverNodePrefab, FlightGlobals.ActiveVessel.patchedConicRenderer); } }
/// <summary> /// Creates a new Meneuver Node Gizmo if needed /// </summary> public static void CreateNodeGizmo(ManeuverNode node) { if (node.attachedGizmo != null) { return; } PatchRendering pr = FlightGlobals.ActiveVessel.patchedConicRenderer.FindRenderingForPatch(node.patch); node.AttachGizmo(MapView.ManeuverNodePrefab, FlightGlobals.ActiveVessel.patchedConicRenderer, pr); }
/// <summary> /// Creates a new Meneuver Node Gizmo if needed /// </summary> public static void CreateNodeGizmo(ManeuverNode node) { if(node.attachedGizmo != null) { return; } PatchRendering pr = FlightGlobals.ActiveVessel.patchedConicRenderer.FindRenderingForPatch(node.patch); node.AttachGizmo(MapView.ManeuverNodePrefab, FlightGlobals.ActiveVessel.patchedConicRenderer, pr); }