|
@@ -15360,8 +15360,14 @@ window.Modernizr = function(n, e, t) {
|
|
function hot(sid,d,model){
|
|
function hot(sid,d,model){
|
|
this.sid = sid;
|
|
this.sid = sid;
|
|
this.position = this.conversionArray(d.position);
|
|
this.position = this.conversionArray(d.position);
|
|
- this.rotation = this.conversionArray(d.rotation);
|
|
|
|
- this.link = d.link;
|
|
|
|
|
|
+ if(d.quaternion){
|
|
|
|
+ this.quaternion = d.quaternion;
|
|
|
|
+ }else{
|
|
|
|
+ this.rotation = this.conversionArray(d.rotation)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ this.link = d.link;
|
|
this.model = model;
|
|
this.model = model;
|
|
this.size = d.size;
|
|
this.size = d.size;
|
|
|
|
|
|
@@ -15420,7 +15426,11 @@ window.Modernizr = function(n, e, t) {
|
|
var hotIconScale = parseFloat(window.MP_PREFETCHED_MODELDATA.hotIconScale);
|
|
var hotIconScale = parseFloat(window.MP_PREFETCHED_MODELDATA.hotIconScale);
|
|
sprite.dynamic = true;
|
|
sprite.dynamic = true;
|
|
sprite.position.copy(new r.Vector3().fromArray(this.position));
|
|
sprite.position.copy(new r.Vector3().fromArray(this.position));
|
|
- sprite.rotation.copy(new r.Euler().fromArray(this.rotation));
|
|
|
|
|
|
+ if(this.quaternion){
|
|
|
|
+ sprite.quaternion.copy(this.quaternion)
|
|
|
|
+ }else{
|
|
|
|
+ sprite.rotation.copy((new r.Euler).fromArray(this.rotation));
|
|
|
|
+ }
|
|
hotIconScale && sprite.scale.set(hotIconScale, hotIconScale, hotIconScale)
|
|
hotIconScale && sprite.scale.set(hotIconScale, hotIconScale, hotIconScale)
|
|
// this.size && sprite.scale.set(this.size,this.size,this.size);
|
|
// this.size && sprite.scale.set(this.size,this.size,this.size);
|
|
sprite.name = this.sid;
|
|
sprite.name = this.sid;
|