Skip to content

Commit

Permalink
fix: Corrected mesh bounds (calculated from accessor's min/max)
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Oct 14, 2021
1 parent 0fc6eaa commit 4a4c4da
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
- Corrected mesh bounds (calculated from accessor's min/max)

## [4.3.2] - 2020-10-13
### Added
- Completed quantization by supporting UInt8/UInt16 skin bone weights
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Scripts/Schema/Accessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ public static int GetAccessorAttributeTypeLength( GLTFAccessorAttributeType type
Assert.AreEqual(GLTFAccessorAttributeType.VEC3 ,typeEnum);
if (min != null && min.Length > 2 && max != null && max.Length > 2) {
return new Bounds {
max = new Vector3(-max[0], max[1], min[2]),
min = new Vector3(-min[0], min[1], max[2])
max = new Vector3(-min[0], max[1], max[2]),
min = new Vector3(-max[0], min[1], min[2])
};
}
return null;
Expand Down

0 comments on commit 4a4c4da

Please sign in to comment.