From 09fa80d8dcae98ca97f290593ef74adfe168c11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20R=C3=A5nman?= Date: Fri, 27 Oct 2023 11:59:27 +0200 Subject: [PATCH] Will compile with XA_CHECK_PARAM_WINDING Can only assume this edit has been forgotten as there is no available variable called 'mesh' in that scope, but there is a unifiedMesh which will allow it to compile with XA_CHECK_PARAM_WINDING set to 1. --- source/xatlas/xatlas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/xatlas/xatlas.cpp b/source/xatlas/xatlas.cpp index 5c5c57e..ce6754b 100644 --- a/source/xatlas/xatlas.cpp +++ b/source/xatlas/xatlas.cpp @@ -9710,7 +9710,7 @@ void PackCharts(Atlas *atlas, PackOptions packOptions) #if XA_CHECK_PARAM_WINDING uint32_t flippedCount = 0; for (uint32_t f = 0; f < faceCount; f++) { - const float area = mesh->computeFaceParametricArea(f); + const float area = unifiedMesh->computeFaceParametricArea(f); if (area < 0.0f) flippedCount++; }