Thank you for your reply. Currently, "bpy.ops.mask.layer_new()" is the solution for 4.1.1. Hope Blender solves the bug in the future.
Depending on your code, I think you're right. I tested it again. It didn't crash. Maybe my original code caused the problem. I'm going to check the code again. In your comment, /* When changing…
I repeated the operator for many times. The console displayed lots of "internal error: modal gizmo-map handler has invalid area" once. Then, the Blender stopped. The screen shot is ![image](/attac…
I simplified the code. It's easier to test.
`import bpy
class SimpleModalOperator(bpy.types.Operator): """A simple modal operator""" bl_idname = "object.simple_modal_operator" …
Thank you for the reply. I've tried all night to test it. I don't realize the object mode is the reason. Thank you.
I've finished my undo add-on recently. I found: If your operator can't be undid by bpy.ops.ed.undo(), it might cause bpy.ops.ed.undo.poll() fail.
The solution is: Remove " bl_options =…
The steps:
- Open Blender.
- Paste " bpy.ops.ed.undo() " in the Blender Python Console and Press ENTER.
- The RuntimeError occurs. `Traceback (most recent call last): File "<blender_conso…