blender-scripts icon indicating copy to clipboard operation
blender-scripts copied to clipboard

"items" can become empty after f8 ?

Open zeffii opened this issue 5 years ago • 1 comments

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

zeffii avatar Feb 17 '20 23:02 zeffii

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

zeffii avatar Feb 17 '20 23:02 zeffii