From 135cd9aeba8baf9367bf1962a25f526742596063 Mon Sep 17 00:00:00 2001 From: Andreas Atteneder Date: Wed, 27 Oct 2021 22:17:35 +0200 Subject: [PATCH] fix: Release build compiler error --- ChangeLog.md | 4 ++++ Runtime/Scripts/Export/GltfWriter.cs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index df7495db..e343bc9a 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] - +### Fixed +- Release build only compiler errors + ## [4.4.2] - 2021-10-27 ### Fixed - Offset of accessor into buffer was incorrect for some scalar accessors (#262) diff --git a/Runtime/Scripts/Export/GltfWriter.cs b/Runtime/Scripts/Export/GltfWriter.cs index a6873f6a..946a716f 100644 --- a/Runtime/Scripts/Export/GltfWriter.cs +++ b/Runtime/Scripts/Export/GltfWriter.cs @@ -414,9 +414,9 @@ int GetPadByteCount(uint length) { return (4 - (int)(length & 3) ) & 3; } -#if DEBUG [Conditional("DEBUG")] void LogSummary(int jsonLength, long bufferLength) { +#if DEBUG var sb = new StringBuilder("glTF summary: "); sb.AppendFormat("{0} bytes JSON + {1} bytes buffer", jsonLength, bufferLength); if (m_Gltf != null) { @@ -426,8 +426,8 @@ void LogSummary(int jsonLength, long bufferLength) { sb.AppendFormat(" ,{0} images", m_Gltf.images?.Length ?? 0); } m_Logger?.Info(sb.ToString()); - } #endif + } async Task Bake(string bufferPath, string directory) { if (m_Meshes != null) {