Fix non-center aligned wall with multimaterial
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user