Skip to content

Commit

Permalink
fix: Release build compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Oct 27, 2021
1 parent ead82f0 commit 135cd9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Scripts/Export/GltfWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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<bool> Bake(string bufferPath, string directory) {
if (m_Meshes != null) {
Expand Down

0 comments on commit 135cd9a

Please sign in to comment.