I have a strange problem.
The plugin creates its own CustomMesh and overwrites the OnDraw method.
Inside OnDraw the plugin draws 1 box. Works fine.
But if I change the viewport mode to “Rendered”, and I turn On Rhino Sun light, it draws two boxes:
If I move around the viewport, the intentionally drawn box follows the viewport orientation change as it should. But not the other box.
But if I change the Sun location, the orientation of the other box changes. So it is linked somehow to the Sun, but I don’t understand why.