kcjengr / qtpyvcp

QtPyVCP - Qt and Python based Virtual Control Panel framework for LinuxCNC.
https://www.qtpyvcp.com
Other
90 stars 50 forks source link

After M6 G43 without loaded file: 'NoneType' object has no attribute 'poly_data' #53

Closed sttts closed 4 years ago

sttts commented 4 years ago

After M6 G43 without loaded file:

Traceback (most recent call last):
  File "/home/sts/src/qtpyvcp/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 666, in load_program
    self.canon.draw_lines()
  File "/home/sts/src/qtpyvcp/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 277, in draw_lines
    path_actor.poly_data.SetPoints(path_actor.points)
AttributeError: 'NoneType' object has no attribute 'poly_data'