Foreach RhinoDoc.Lights is empty

In Rhino5 I could write foreach (var light in document.Lights) {…}

In Rhino6 (6.0.17276.9501, 03.10.2017) foreach iterates over an empty enumerable. I have to use a for loop with doc.Lights.Count

HI @Simon_Weinberger,

Thanks, I’ve reported the bug.

https://mcneel.myjetbrains.com/youtrack/issue/RH-41899

– Dale