Since weight_other is equal to weight_accum_prev[i_other], the original lines actually are no-op. The visible effect is that when smoothing just two vertices with weights 1 and 0, the expand value has no effect until it reaches exactly 1. This change makes it gradual.