|
@@ -152,7 +152,8 @@ EditTools.prototype.saveAll = function () {
|
|
|
y: dom.hotMesh.position.y,
|
|
|
z: dom.hotMesh.position.z
|
|
|
},
|
|
|
- quaternion : hot.isSprite ? hot.quaternion.toObject() : dom.hotMesh.quaternion.toObject()
|
|
|
+ //quaternion : hot.isSprite ? hot.quaternion: dom.hotMesh.quaternion.toObject()
|
|
|
+ rotation : hot.isSprite ? new THREE.Euler().setFromQuaternion(hot.quaternion).toObject() : dom.hotMesh.rotation.toObject()
|
|
|
,
|
|
|
isSprite : hot.isSprite ? 1 : 0,
|
|
|
infoAttribute: dom.infoAttribute
|
|
@@ -161,10 +162,10 @@ EditTools.prototype.saveAll = function () {
|
|
|
if(hot.visiblePanos) hots[sid].visiblePanos = hot.visiblePanos
|
|
|
|
|
|
|
|
|
- delete dom.infoAttribute.rotation;
|
|
|
+
|
|
|
delete dom.infoAttribute.position;
|
|
|
delete dom.infoAttribute.quaternion;
|
|
|
-
|
|
|
+ delete dom.infoAttribute.rotation;
|
|
|
|
|
|
})
|
|
|
|