|
@@ -152,10 +152,11 @@ EditTools.prototype.saveAll = function () {
|
|
y: dom.hotMesh.position.y,
|
|
y: dom.hotMesh.position.y,
|
|
z: dom.hotMesh.position.z
|
|
z: dom.hotMesh.position.z
|
|
},
|
|
},
|
|
- //quaternion : hot.isSprite ? hot.quaternion: dom.hotMesh.quaternion.toObject()
|
|
|
|
|
|
+ //有的定制场景代码是旧的,只能使用rotation,所以不输出quaternion :
|
|
rotation : hot.isSprite ? new THREE.Euler().setFromQuaternion(hot.quaternion).toObject() : dom.hotMesh.rotation.toObject()
|
|
rotation : hot.isSprite ? new THREE.Euler().setFromQuaternion(hot.quaternion).toObject() : dom.hotMesh.rotation.toObject()
|
|
,
|
|
,
|
|
isSprite : hot.isSprite ? 1 : 0,
|
|
isSprite : hot.isSprite ? 1 : 0,
|
|
|
|
+ noAction : hot.noAction ? 1 : 0,
|
|
infoAttribute: dom.infoAttribute
|
|
infoAttribute: dom.infoAttribute
|
|
|
|
|
|
}
|
|
}
|
|
@@ -476,6 +477,7 @@ Hotpoint.prototype.init = function (n) {
|
|
info.position && hot.mesh.position.copy(info.position)
|
|
info.position && hot.mesh.position.copy(info.position)
|
|
info.quaternion && hot.mesh.quaternion.copy(info.quaternion)
|
|
info.quaternion && hot.mesh.quaternion.copy(info.quaternion)
|
|
hot.isSprite = info.isSprite
|
|
hot.isSprite = info.isSprite
|
|
|
|
+ hot.noAction = info.noAction
|
|
}
|
|
}
|
|
that.hotpointDetail.addClass("atRight");
|
|
that.hotpointDetail.addClass("atRight");
|
|
transformControls.detach()
|
|
transformControls.detach()
|
|
@@ -521,15 +523,15 @@ Hotpoint.prototype.editHot = function (target) {
|
|
|
|
|
|
|
|
|
|
// 参数初始化
|
|
// 参数初始化
|
|
- info.title = info.title || '';
|
|
|
|
- info.content = info.content || '';
|
|
|
|
- info.iframe = info.iframe || [];
|
|
|
|
- info.model = info.model || [];
|
|
|
|
- info.images = info.images || [];
|
|
|
|
- info.video = info.video || [];
|
|
|
|
|
|
+ info.title = info.title || '';
|
|
|
|
+ info.content = info.content || '';
|
|
|
|
+ info.iframe = info.iframe || [];
|
|
|
|
+ info.model = info.model || [];
|
|
|
|
+ info.images = info.images || [];
|
|
|
|
+ info.video = info.video || [];
|
|
info.isSprite = this.editSpot.isSprite
|
|
info.isSprite = this.editSpot.isSprite
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ info.noAction = this.editSpot.noAction
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -544,6 +546,7 @@ Hotpoint.prototype.editHot = function (target) {
|
|
initStyle(player.model.hots[li_id])
|
|
initStyle(player.model.hots[li_id])
|
|
|
|
|
|
$("#isSprite")[0].checked = this.editSpot.isSprite
|
|
$("#isSprite")[0].checked = this.editSpot.isSprite
|
|
|
|
+ $("#noAction")[0].checked = this.editSpot.noAction
|
|
|
|
|
|
var iframesHTML = info.iframe.map(function (iframe) {
|
|
var iframesHTML = info.iframe.map(function (iframe) {
|
|
return this.inputList("请填写网页链接", iframe)
|
|
return this.inputList("请填写网页链接", iframe)
|
|
@@ -1070,7 +1073,9 @@ Hotpoint.prototype.saveHot = function () {
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+ $("#noAction").on("change",function(e){
|
|
|
|
+ _this.editSpot.noAction = this.checked;
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|