I am generating some shape using python in Blender. Most of the times, when I run the code I get what I expect. But sometimes I see the broken mesh as I have shown in the figure.
As far as code's functionality is concerned, I am not using any random function/ number. Code is expected to give out deterministic result every time I run it.
Any suggestions on what might be causing this inconsistent behavior?


bpy.opscommands? Some are context sensitive, require certain windows or react to e.g. the mouse position.# – Leander Dec 05 '19 at 18:26