Skip to content

Commit

Permalink
Remove negative key frame guard at babylon level (#1034)
Browse files Browse the repository at this point in the history
For gltf, offset the key frame instead of cut at zero
  • Loading branch information
pandaGaume authored Mar 16, 2022
1 parent 629e259 commit c64660e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SharedProjects/BabylonExport.Entities/BabylonAnimationKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class BabylonAnimationKey : IComparable<BabylonAnimationKey>, ICloneable
private float[] _values;

[DataMember]
// guard for negative value.
public float frame { get => _f; set => _f = value < 0 ? 0 : value; }
public float frame { get => _f; set => _f = value; }

[DataMember]
public float[] values {
Expand Down

0 comments on commit c64660e

Please sign in to comment.