mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
fix tutorial issue
This commit is contained in:
parent
d6537c9e74
commit
76c8f18fd4
1 changed files with 1 additions and 1 deletions
|
@ -3449,7 +3449,7 @@ function _get_cp(geom) =
|
||||||
|
|
||||||
|
|
||||||
function _force_anchor_2d(anchor) =
|
function _force_anchor_2d(anchor) =
|
||||||
is_undef(anchor) ? anchor :
|
is_undef(anchor) || len(anchor)==2 ? anchor :
|
||||||
assert(anchor.y==0 || anchor.z==0, "Anchor for a 2D shape cannot be fully 3D. It must have either Y or Z component equal to zero.")
|
assert(anchor.y==0 || anchor.z==0, "Anchor for a 2D shape cannot be fully 3D. It must have either Y or Z component equal to zero.")
|
||||||
anchor.y==0 ? [anchor.x,anchor.z] : point2d(anchor);
|
anchor.y==0 ? [anchor.x,anchor.z] : point2d(anchor);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue