blender-scripts
blender-scripts copied to clipboard
"items" can become empty after f8 ?
https://github.com/K-410/blender-scripts/blob/9eb5bec3ab629a7edc4494e99bac4d11fb944440/2.8/run_in_console.py#L98-L112
in that case the while loop is never entered, and the line below it if not ok
will throw a
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\run_in_console.py", line 107, in scrollback_append
if not ok:
UnboundLocalError: local variable 'ok' referenced before assignment
location: <unknown location>:-1
https://github.com/nortikin/sverchok/issues/2884
or maybe
while items:
if isinstance(bpy.context, _RestrictContext):
break
is what causes ok
to be non-existent when line 109
is executed after f8