File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ const getLocalPosition = (drawable, vec) => {
3838 // localPosition matches that transformation.
3939 localPosition [ 0 ] = 0.5 - ( ( ( v0 * m [ 0 ] ) + ( v1 * m [ 4 ] ) + m [ 12 ] ) / d ) ;
4040 localPosition [ 1 ] = ( ( ( v0 * m [ 1 ] ) + ( v1 * m [ 5 ] ) + m [ 13 ] ) / d ) + 0.5 ;
41- // Fix floating point issues near 0.
41+ // Fix floating point issues near 0. Filed https://github.com/LLK/scratch-render/issues/688 that
42+ // they're happening in the first place.
4243 // TODO: Check if this can be removed after render pull 479 is merged
4344 if ( Math . abs ( localPosition [ 0 ] ) < FLOATING_POINT_ERROR_ALLOWANCE ) localPosition [ 0 ] = 0 ;
4445 if ( Math . abs ( localPosition [ 1 ] ) < FLOATING_POINT_ERROR_ALLOWANCE ) localPosition [ 1 ] = 0 ;
You can’t perform that action at this time.
0 commit comments