Skip to content

Commit

Permalink
Fix regression of exporting vec2 and vec3 lie rotation (fix #534)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed May 31, 2024
1 parent 9457cda commit 5113c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json-utils_1.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function toPropString(propData) {
propData.isVector3 ||
propData.isVector2 ||
propData.isVector4 ||
(propData['x'] && propData['y'])
(propData.hasOwnProperty('x') && propData.hasOwnProperty('y')) // eslint-disable-line
) {
return AFRAME.utils.coordinates.stringify(propData);
}
Expand Down

0 comments on commit 5113c08

Please sign in to comment.