mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Merge pull request #1059 from cdc-mkb/master
Fix "linear_sweep(..., texture=..., scale=..., twist=...)".
This commit is contained in:
commit
01075b1977
1 changed files with 2 additions and 2 deletions
|
@ -3489,8 +3489,8 @@ function _textured_linear_sweep(
|
|||
if (i != counts.y || ti == 0)
|
||||
let(
|
||||
v = (i + (ti/texcnt.y)) / counts.y,
|
||||
sc = lerp(scale, [1,1,1], v),
|
||||
mat = down((v-0.5)*h) *
|
||||
sc = lerp([1, 1, 1], scale, v),
|
||||
mat = up((v-0.5)*h) *
|
||||
scale(sc) *
|
||||
zrot(twist*v)
|
||||
) apply(mat, tile_rows[ti])
|
||||
|
|
Loading…
Reference in a new issue