mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-16 21:04:01 +02:00
another bugfix
This commit is contained in:
@@ -1287,8 +1287,8 @@ module textured_tile(
|
|||||||
tex_rot=0,
|
tex_rot=0,
|
||||||
tex_depth=1,
|
tex_depth=1,
|
||||||
diff=false,
|
diff=false,
|
||||||
extra=1,
|
tex_extra=1,
|
||||||
skip=0,
|
tex_skip=0,
|
||||||
style="min_edge",
|
style="min_edge",
|
||||||
atype="tex",
|
atype="tex",
|
||||||
anchor=CENTER, spin=0, orient=UP
|
anchor=CENTER, spin=0, orient=UP
|
||||||
@@ -1297,8 +1297,8 @@ module textured_tile(
|
|||||||
|
|
||||||
vnf_data = textured_tile(size=size,
|
vnf_data = textured_tile(size=size,
|
||||||
ysize=ysize, height=height, w1=w1, w2=w2, ang=ang, h=h, shift=shift,
|
ysize=ysize, height=height, w1=w1, w2=w2, ang=ang, h=h, shift=shift,
|
||||||
texture=texture, tex_size=tex_size, tex_reps=tex_reps,extra=extra,
|
texture=texture, tex_size=tex_size, tex_reps=tex_reps,tex_extra=tex_extra,
|
||||||
tex_inset=tex_inset, tex_rot=tex_rot, tex_depth=tex_depth,skip=skip,
|
tex_inset=tex_inset, tex_rot=tex_rot, tex_depth=tex_depth,tex_skip=tex_skip,
|
||||||
style=style, atype="std",_return_anchor=true);
|
style=style, atype="std",_return_anchor=true);
|
||||||
h_w1_w2_shift = vnf_data[2];
|
h_w1_w2_shift = vnf_data[2];
|
||||||
is_trap = is_def(h_w1_w2_shift);
|
is_trap = is_def(h_w1_w2_shift);
|
||||||
@@ -1340,8 +1340,8 @@ function textured_tile(
|
|||||||
tex_depth=1,
|
tex_depth=1,
|
||||||
style="min_edge",
|
style="min_edge",
|
||||||
atype="tex",
|
atype="tex",
|
||||||
extra=1,
|
tex_extra=1,
|
||||||
skip=0,
|
tex_skip=0,
|
||||||
anchor=CENTER, spin=0, orient=UP,
|
anchor=CENTER, spin=0, orient=UP,
|
||||||
_return_anchor=false
|
_return_anchor=false
|
||||||
) =
|
) =
|
||||||
@@ -1352,8 +1352,8 @@ function textured_tile(
|
|||||||
assert(is_undef(size) || num_defined([ysize,h, height, thickness, w1,w2,ang])==0, "Cannot combine size with any other dimensional specifications")
|
assert(is_undef(size) || num_defined([ysize,h, height, thickness, w1,w2,ang])==0, "Cannot combine size with any other dimensional specifications")
|
||||||
|
|
||||||
let(
|
let(
|
||||||
extra = is_list(extra) ? extra : [extra,extra],
|
extra = is_list(tex_extra) ? tex_extra : [tex_extra,tex_extra],
|
||||||
skip = is_list(skip) ? skip : [skip,skip],
|
skip = is_list(tex_skip) ? tex_skip : [tex_skip,tex_skip],
|
||||||
inset = is_num(tex_inset)? tex_inset : tex_inset? 1 : 0,
|
inset = is_num(tex_inset)? tex_inset : tex_inset? 1 : 0,
|
||||||
default_thick = inset>0 ? 0.1+abs(tex_depth)*inset : 0.1,
|
default_thick = inset>0 ? 0.1+abs(tex_depth)*inset : 0.1,
|
||||||
extra_ht = max(0,abs(tex_depth)*(1-inset)),
|
extra_ht = max(0,abs(tex_depth)*(1-inset)),
|
||||||
|
Reference in New Issue
Block a user