BinTray: Fix settings for finger joints on 45° angles

Previously a new settings object was created and settings in the UI were
ignored. Now the settings are copied over.

Resolves: #364
Thanks to https://github.com/leyton01 for reporting!
This commit is contained in:
Florian Festi 2022-02-06 17:35:15 +01:00
parent 685f364290
commit 048bb11b09
1 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from boxes import *
import math
import math, copy
class BinFrontEdge(edges.BaseEdge):
char = "B"
@ -110,7 +110,9 @@ class BinTray(Boxes):
self.addPart(BinFrontEdge(self, self))
self.addPart(BinFrontSideEdge(self, self))
edges.FingerJointSettings(self.thickness, True, angle=45).edgeObjects(self, chars="gGH")
angledsettings = copy.deepcopy(self.edges["f"].settings)
angledsettings.setValues(self.thickness, True, angle=45)
angledsettings.edgeObjects(self, chars="gGH")
# outer walls
e = ["F", "f", edges.SlottedEdge(self, self.sx[::-1], "G"), "f"]