From cc8cf4ecbb04c4f8ec6338eaa8afcd4e85679658 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 28 Mar 2021 21:48:50 +0300 Subject: [PATCH] - fixed an error in the Subtract Plugin when working on Geometry objects --- CHANGELOG.md | 1 + appPlugins/ToolSub.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 330fc93d..da7a83ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ CHANGELOG for FlatCAM beta - minor logging changes - created a new category in Preferences where only the Engraving Related preferences are located - added a new set of options in the Preferences for the Milling Plugin by taking them out of the Geometry section +- fixed an error in the Subtract Plugin when working on Geometry objects 22.03.2021 diff --git a/appPlugins/ToolSub.py b/appPlugins/ToolSub.py index 1272eadc..221a29d0 100644 --- a/appPlugins/ToolSub.py +++ b/appPlugins/ToolSub.py @@ -530,7 +530,7 @@ class ToolSub(AppTool): # crate the new_tools dict structure for tool in self.target_geo_obj.tools: self.new_tools[tool] = {} - for key, v in self.target_geo_obj.tools[tool]: + for key, v in self.target_geo_obj.tools[tool].items(): self.new_tools[tool][key] = [] if key == 'solid_geometry' else deepcopy(v) # add the promises