Skip to content

Commit c64660e

Browse files
authored
Remove negative key frame guard at babylon level (#1034)
For gltf, offset the key frame instead of cut at zero
1 parent 629e259 commit c64660e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SharedProjects/BabylonExport.Entities/BabylonAnimationKey.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class BabylonAnimationKey : IComparable<BabylonAnimationKey>, ICloneable
1212
private float[] _values;
1313

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

1817
[DataMember]
1918
public float[] values {

0 commit comments

Comments
 (0)