In my Grasshopper component, I override the DrawViewportWires
method like so:
public override void DrawViewportWires(IGH_PreviewArgs args)
{
base.DrawViewportWires(args);
if (MyPreviewObject == null) return;
args.Display.DrawCurve(MyPreviewObject.MyCurve, System.Drawing.Color.Coral, 5);
}
This works fine but I would like to also have the “selecting object turns preview colour the default shade of green” functionality, which the override above seems to have gotten rid of. How do I restore the selection preview?