From 5edb1dba04bf050e9776a0cbd6e66d194c8f0287 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 15 Dec 2022 23:13:00 +0100 Subject: [PATCH] fixup to tes working --- geometry.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index 1f18eac1..263691f8 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1172,6 +1172,12 @@ EX namespace geom3 { return f(); } + template auto in_not_flipped(const T& f) -> decltype(f()) { + light_flip(false); + finalizer ff([] { light_flip(true); }); + return f(); + } + #define IPF(x) geom3::in_flipped([&] { return (x); }) #endif