Skip to content

Commit

Permalink
fix compile error on 2020.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed May 15, 2023
1 parent 9513b30 commit 50c460a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions UnityGLTF/Assets/UnityGLTF/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [2.0.3-exp] - 2023-05-15
- fix: import path retargeting exception in some cases
- fix: Range shader property type was missing from propery validation
- feat: allow changing GLTFRecorderClip animation output name

## [2.0.2-exp] - 2023-05-08
- remove: unnecessary forced texture transform setting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,11 @@ public void AddPropertyCurves(Object animatedObject, AnimationCurve curve, Edito
case ShaderUtil.ShaderPropertyType.TexEnv:
prop.propertyType = typeof(Texture);
break;
#if UNITY_2021_1_OR_NEWER
case ShaderUtil.ShaderPropertyType.Int:
prop.propertyType = typeof(int);
break;
#endif
default:
Debug.LogWarning(null, "Looks like there's a new shader property type - please report a bug!");
break;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50c460a

Please sign in to comment.