mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-05 21:47:39 +02:00
fix tutorial issue
This commit is contained in:
@@ -3449,7 +3449,7 @@ function _get_cp(geom) =
|
||||
|
||||
|
||||
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.")
|
||||
anchor.y==0 ? [anchor.x,anchor.z] : point2d(anchor);
|
||||
|
||||
|
Reference in New Issue
Block a user