Skip to content

Commit

Permalink
Merge branch 'release/6.0.1' into openupm
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Oct 19, 2023
2 parents 376c02f + aa4b43f commit fa33f63
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ 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).

## [6.0.1] - 2023-10-11

### Fixed
- Compilation error when Animation module is disabled and Newtonsoft JSON package installed.

## [6.0.0] - 2023-10-04

### Added
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Export/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace GLTFast.Export
{
static class Constants
{
public const string version = "6.0.0";
public const string version = "6.0.1";

internal const string mimeTypePNG = "image/png";
internal const string mimeTypeJPG = "image/jpeg";
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Newtonsoft/Schema/AnimationChannel.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0

#if NEWTONSOFT_JSON
#if UNITY_ANIMATION && NEWTONSOFT_JSON

using System.Collections.Generic;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0

#if NEWTONSOFT_JSON
#if UNITY_ANIMATION && NEWTONSOFT_JSON

using System.Collections.Generic;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Newtonsoft/Schema/AnimationSampler.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0

#if NEWTONSOFT_JSON
#if UNITY_ANIMATION && NEWTONSOFT_JSON

using System.Collections.Generic;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Newtonsoft/Schema/GltfAnimation.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0

#if NEWTONSOFT_JSON
#if UNITY_ANIMATION && NEWTONSOFT_JSON

using System.Collections.Generic;

Expand Down
5 changes: 5 additions & 0 deletions Runtime/Scripts/Newtonsoft/glTFast.Newtonsoft.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
"autoReferenced": false,
"defineConstraints": [],
"versionDefines": [
{
"name": "com.unity.modules.animation",
"expression": "1.0.0",
"define": "UNITY_ANIMATION"
},
{
"name": "com.unity.nuget.newtonsoft-json",
"expression": "",
Expand Down
4 changes: 4 additions & 0 deletions Tests/Runtime/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ public void CustomExtensionEverywhere()
CertifyCustomExtensions(gltf.accessors[0].sparse.values.extensions);
CertifyCustomExtras(gltf.accessors[0].sparse.values.extras);

#if UNITY_ANIMATION
CertifyCustomData(gltf.animations[0], 43);
CertifyCustomExtensions(gltf.animations[0].extensions);
CertifyCustomExtras(gltf.animations[0].extras);
Expand All @@ -393,6 +394,7 @@ public void CustomExtensionEverywhere()
CertifyCustomData(gltf.animations[0].samplers[0], 431);
CertifyCustomExtensions(gltf.animations[0].samplers[0].extensions);
CertifyCustomExtras(gltf.animations[0].samplers[0].extras);
#endif

CertifyCustomData(gltf.asset, 44);
CertifyCustomExtensions(gltf.asset.extensions);
Expand Down Expand Up @@ -570,8 +572,10 @@ public void CustomExtensionNowhere()
Assert.IsNull(gltf.accessors[0].extras);
Assert.IsNull(gltf.accessors[0].extensions);

#if UNITY_ANIMATION
Assert.IsNull(gltf.animations[0].extras);
Assert.IsNull(gltf.animations[0].extensions);
#endif

Assert.IsNull(gltf.asset.extras);
Assert.IsNull(gltf.asset.extensions);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.atteneder.gltfast",
"version": "6.0.0",
"version": "6.0.1",
"displayName": "glTFast",
"description": "Use glTFast to import and export glTF 3D files efficiently at runtime or in the Editor",
"unity": "2020.3",
Expand Down

0 comments on commit fa33f63

Please sign in to comment.