Arch: Arch_Wall fix MultiMaterial alignment bug.

This commit is contained in:
Roy-043
2020-09-10 15:04:46 +02:00
committed by Yorik van Havre
parent 2cf9f395c1
commit 8ef5e8e333

View File

@@ -1342,7 +1342,9 @@ class _Wall(ArchComponent.Component):
if curAligns == "Left":
if layers:
curWidth = [abs(layers[i])]
curWidth = []
for n in range(edgeNum):
curWidth.append(abs(layers[i]))
off = off+layeroffset
dvec.multiply(curWidth[0])
layeroffset += abs(curWidth[0])
@@ -1386,7 +1388,9 @@ class _Wall(ArchComponent.Component):
dvec = dvec.negative()
if layers:
curWidth = [abs(layers[i])]
curWidth = []
for n in range(edgeNum):
curWidth.append(abs(layers[i]))
off = off+layeroffset
dvec.multiply(curWidth[0])
layeroffset += abs(curWidth[0])