Skip to content

Commit

Permalink
Fix messed up rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Aug 9, 2024
1 parent 2dcd1ec commit dbf7333
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/draw/projection.typ
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
if cull-face != none {
assert(cull-face in ("cw", "ccw"),
message: "cull-face must be none, cw or ccw.")
drawables = _filter-cw-faces(drawables, invert: cull-face == "ccw")
drawables = _filter-cw-faces(drawables, mode: cull-face)
}
if sorted {
drawables = _sort-by-distance(drawables)
Expand Down Expand Up @@ -122,6 +122,7 @@
/// - z (angle): Z-axis rotation angle
/// - sorted (bool): Sort drawables by maximum distance (front to back)
/// - cull-face (none,string): Enable back-face culling if set to `"cw"` for clockwise
/// or `"ccw"` for counter-clockwise. Polygons of the specified order will not get drawn.
/// - reset-transform (bool): Ignore the current transformation matrix
/// - body (element): Elements to draw
#let ortho(x: 35.264deg, y: 45deg, z: 0deg, sorted: true, cull-face: none, reset-transform: false, body, name: none) = group(name: name, ctx => {
Expand Down

0 comments on commit dbf7333

Please sign in to comment.