From 4189b53232c115dec797309af5139ea0f6030331 Mon Sep 17 00:00:00 2001 From: Pablo Escobar Date: Tue, 5 Oct 2021 19:16:15 +0200 Subject: [PATCH] CgltfImporter: use angle directly --- src/MagnumPlugins/CgltfImporter/Test/CgltfImporterTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MagnumPlugins/CgltfImporter/Test/CgltfImporterTest.cpp b/src/MagnumPlugins/CgltfImporter/Test/CgltfImporterTest.cpp index 0c904ae5f..bdd1ececa 100644 --- a/src/MagnumPlugins/CgltfImporter/Test/CgltfImporterTest.cpp +++ b/src/MagnumPlugins/CgltfImporter/Test/CgltfImporterTest.cpp @@ -1880,7 +1880,7 @@ void CgltfImporterTest::lightMissingSpot() { CORRADE_COMPARE(light->range(), Constants::inf()); CORRADE_COMPARE(light->innerConeAngle(), 0.0_radf); /* Magnum uses full angles, glTF uses half angles */ - CORRADE_COMPARE(light->outerConeAngle(), Rad{Constants::piQuarter()*2.0f}); + CORRADE_COMPARE(light->outerConeAngle(), Rad{45.0_degf*2.0f}); } void CgltfImporterTest::scene() {