Fixes the following error:
Numpy to Image freecad-test-for-blender-Body_Op_freecad-test-for-blender-Body_1_off.exr
104 111
FAIL cannot access local variable 'i' where it is not associated with a value
File "/home/dw/.config/blender/4.3/extensions/user_default/fabex/operators/path_ops.py", line 218, in _calc_path
await get_path(context, o)
File "/home/dw/.config/blender/4.3/extensions/user_default/fabex/gcode_path.py", line 644, in get_path
await get_path_3_axis(context, operation)
File "/home/dw/.config/blender/4.3/extensions/user_default/fabex/gcode_path.py", line 882, in get_path_3_axis
await prepare_area(o)
File "/home/dw/.config/blender/4.3/extensions/user_default/fabex/utilities/image_utils.py", line 822, in prepare_area
numpy_save(o.offset_image, iname)
File "/home/dw/.config/blender/4.3/extensions/user_default/fabex/utilities/image_utils.py", line 61, in numpy_save
i = numpy_to_image(a, inamebase)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dw/.config/blender/4.3/extensions/user_default/fabex/utilities/image_utils.py", line 191, in numpy_to_image
i.pixels[:] = a[:] # this gives big speedup!
^
CALCULATED PATH (success=FINISHED,retval=False)
Error: cannot access local variable 'i' where it is not associated with a value
Make sure that the image is always created by limiting the length
of the 'name' argument in the bpy.ops.image.new().
Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
Try to achieve consistent formatting results between
different 'black' and 'python' versions.
Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
Improve "Operation Exceeds Your Machine Limits" message
with information on which axes the limit were exceeded plus
the value of range and working area.
Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
Fixes the following error:
utilities/operation_utils.py", line 328, in update_chipload
o.info.chipload_per_tooth = unit_value_to_string(o.info.chipload, 4)
^^^^^^^^^^^^^^^^^^^^
NameError: name 'unit_value_to_string' is not defined
File "utilities/operation_utils.py", line 346, in update_offset_image
Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>