Skip to content

Commit ec5e941

Browse files
committed
Added comment.
1 parent 7f611e7 commit ec5e941

13 files changed

+13
-0
lines changed

src/x_ite/Components/Interpolation/ColorInterpolator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Object .assign (Object .setPrototypeOf (ColorInterpolator .prototype, X3DInterpo
3535
for (const value of keyValue)
3636
this .hsv .push (value .getHSV ());
3737

38+
// If there already was an set_fraction event in this frame, send a new value_changed to prevent glitches.
3839
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
3940
this .set_fraction__ ();
4041
},

src/x_ite/Components/Interpolation/CoordinateInterpolator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Object .assign (Object .setPrototypeOf (CoordinateInterpolator .prototype, X3DIn
1717
{
1818
set_keyValue__ ()
1919
{
20+
// If there already was an set_fraction event in this frame, send a new value_changed to prevent glitches.
2021
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
2122
this .set_fraction__ ();
2223
},

src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Object .assign (Object .setPrototypeOf (CoordinateInterpolator2D .prototype, X3D
1717
{
1818
set_keyValue__ ()
1919
{
20+
// If there was already an set_fraction event in this frame, send a new value_changed to prevent glitches.
2021
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
2122
this .set_fraction__ ();
2223
},

src/x_ite/Components/Interpolation/EaseInEaseOut.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Object .assign (Object .setPrototypeOf (EaseInEaseOut .prototype, X3DInterpolato
2525
if (this ._easeInEaseOut .length < this ._key .length)
2626
this ._easeInEaseOut .resize (this ._key .length, this ._easeInEaseOut .length ? this ._easeInEaseOut [this ._easeInEaseOut .length - 1] : new Fields .SFVec2f ());
2727

28+
// If there was already an set_fraction event in this frame, send a new value_changed to prevent glitches.
2829
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
2930
this .set_fraction__ ();
3031
},

src/x_ite/Components/Interpolation/NormalInterpolator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Object .assign (Object .setPrototypeOf (NormalInterpolator .prototype, X3DInterp
2424
},
2525
set_keyValue__ ()
2626
{
27+
// If there was already an set_fraction event in this frame, send a new value_changed to prevent glitches.
2728
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
2829
this .set_fraction__ ();
2930
},

src/x_ite/Components/Interpolation/OrientationInterpolator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Object .assign (Object .setPrototypeOf (OrientationInterpolator .prototype, X3DI
3535
if (keyValue .length < key .length)
3636
keyValue .resize (key .length, keyValue .length ? keyValue [keyValue .length - 1] : new Fields .SFRotation ());
3737

38+
// If there was already an set_fraction event in this frame, send a new value_changed to prevent glitches.
3839
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
3940
this .set_fraction__ ();
4041
},

src/x_ite/Components/Interpolation/PositionInterpolator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Object .assign (Object .setPrototypeOf (PositionInterpolator .prototype, X3DInte
3030
if (keyValue .length < key .length)
3131
keyValue .resize (key .length, keyValue .length ? keyValue [keyValue .length - 1] : new Fields .SFVec3f ());
3232

33+
// If there was already an set_fraction event in this frame, send a new value_changed to prevent glitches.
3334
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
3435
this .set_fraction__ ();
3536
},

src/x_ite/Components/Interpolation/PositionInterpolator2D.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Object .assign (Object .setPrototypeOf (PositionInterpolator2D .prototype, X3DIn
3030
if (keyValue .length < key .length)
3131
keyValue .resize (key .length, keyValue .length ? keyValue [keyValue .length - 1] : new Fields .SFVec2f ());
3232

33+
// If there was already an set_fraction event in this frame, send a new value_changed to prevent glitches.
3334
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
3435
this .set_fraction__ ();
3536
},

src/x_ite/Components/Interpolation/ScalarInterpolator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Object .assign (Object .setPrototypeOf (ScalarInterpolator .prototype, X3DInterp
3030
if (keyValue .length < key .length)
3131
keyValue .resize (key .length, keyValue .length ? keyValue [keyValue .length - 1] : 0);
3232

33+
// If there was already an set_fraction event in this frame, send a new value_changed to prevent glitches.
3334
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
3435
this .set_fraction__ ();
3536
},

src/x_ite/Components/Interpolation/SplinePositionInterpolator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Object .assign (Object .setPrototypeOf (SplinePositionInterpolator .prototype, X
5454
this ._keyVelocity,
5555
this ._normalizeVelocity .getValue ());
5656

57+
// If there was already an set_fraction event in this frame, send a new value_changed to prevent glitches.
5758
if (this ._set_fraction .getModificationTime () >= this .getBrowser () .getCurrentTime ())
5859
this .set_fraction__ ();
5960
},

0 commit comments

Comments
 (0)