- fixed an if/else selection in the AppObject.on_object_created() that made the plotting of CNCJob objects to be done twice and second time will disregard the Plot Kind Preference value

This commit is contained in:
Marius Stanciu
2020-11-07 14:37:49 +02:00
committed by Marius
parent 93555a134e
commit cccc5634c9
5 changed files with 8 additions and 7 deletions

View File

@@ -452,7 +452,7 @@ class AppObject(QtCore.QObject):
with self.app.proc_container.new('%s ...' % _("Plotting")):
if t_obj.kind == 'cncjob':
t_obj.plot(kind=self.app.defaults["cncjob_plot_kind"])
if t_obj.kind == 'gerber':
elif t_obj.kind == 'gerber':
t_obj.plot(color=t_obj.outline_color, face_color=t_obj.fill_color)
else:
t_obj.plot()