diff --git a/src/LayerPlan.cpp b/src/LayerPlan.cpp
index bb2eccf524..6f8fdbdc29 100644
--- a/src/LayerPlan.cpp
+++ b/src/LayerPlan.cpp
@@ -1271,6 +1271,7 @@ void LayerPlan::addSplitWall(
         }
 
         p0 = p1;
+        w0 = w1;
     }
 }