Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • $\begingroup$ I'm using Blender 3.3 and when I put your code inside my draw function: def draw(): registered by bpy.types.SpaceView3D.draw_handler_add(draw, (), 'WINDOW', 'POST_PIXEL') I get a Blender crash :D And by "put your code" I actually only mean the with bpy.context.temp_override(area=area): part - it's enough to cause the crash. Seems like Blender doesn't handle Python's context managers inside the draw handler $\endgroup$ Commented Jan 21, 2023 at 15:09
  • $\begingroup$ I also added my whole code. Check it out if it helps. $\endgroup$ Commented Jan 21, 2023 at 15:19