Skip to content

Commit

Permalink
Merge pull request #548 from 3DStreet/fix-export-issue
Browse files Browse the repository at this point in the history
Fix regression of exporting vec2 and vec3 like rotation (fix #534)
  • Loading branch information
kfarr authored May 31, 2024
2 parents 9457cda + 5113c08 commit d5b6b4e
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 d5b6b4e

Please sign in to comment.