Fix non-center aligned wall with multimaterial

This commit is contained in:
Vanuan
2020-08-07 03:21:49 +03:00
committed by Yorik van Havre
parent fdbfee279c
commit 0811c61435

View File

@@ -1342,10 +1342,10 @@ class _Wall(ArchComponent.Component):
if curAligns == "Left":
if layers:
curWidth = abs(layers[i])
curWidth = [abs(layers[i])]
off = off+layeroffset
dvec.multiply(curWidth)
layeroffset += abs(curWidth)
dvec.multiply(curWidth[0])
layeroffset += abs(curWidth[0])
else:
curWidth = widths
dvec.multiply(width)
@@ -1386,10 +1386,10 @@ class _Wall(ArchComponent.Component):
dvec = dvec.negative()
if layers:
curWidth = abs(layers[i])
curWidth = [abs(layers[i])]
off = off+layeroffset
dvec.multiply(curWidth)
layeroffset += abs(curWidth)
dvec.multiply(curWidth[0])
layeroffset += abs(curWidth[0])
else:
curWidth = widths
dvec.multiply(width)