[Blender Error] AttributeError: ‘_RestrictContext’ object has no attribute ‘view_layer’
Error Detail
When I activate my addon that uses operations with bpy.ops in register() function, the error “AttributeError: ‘_RestrictContext’ object has no attribute ‘view_layer’ ” occurred.
(more…)