From 5113c085ac3095c7aa3f3b41151997b0c20f6cfc Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Fri, 31 May 2024 17:27:23 +0200 Subject: [PATCH] Fix regression of exporting vec2 and vec3 lie rotation (fix #534) --- src/json-utils_1.1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json-utils_1.1.js b/src/json-utils_1.1.js index a084b1e9a..6ce85fd79 100644 --- a/src/json-utils_1.1.js +++ b/src/json-utils_1.1.js @@ -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); }