|
@@ -17810,7 +17810,6 @@
|
|
this.text = [text + ''];
|
|
this.text = [text + ''];
|
|
} else this.text = text;
|
|
} else this.text = text;
|
|
this.updateTexture();
|
|
this.updateTexture();
|
|
- this.sprite.waitUpdate(); //重新计算各个viewport的matrix
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
setTextColor(color) {
|
|
setTextColor(color) {
|
|
@@ -17829,9 +17828,9 @@
|
|
this.position.copy(pos);
|
|
this.position.copy(pos);
|
|
this.sprite.waitUpdate();
|
|
this.sprite.waitUpdate();
|
|
}
|
|
}
|
|
- update() {
|
|
|
|
- this.sprite.waitUpdate();
|
|
|
|
- }
|
|
|
|
|
|
+ /* update(){
|
|
|
|
+ this.sprite.waitUpdate()
|
|
|
|
+ } */
|
|
/* setVisible(v){
|
|
/* setVisible(v){
|
|
Potree.Utils.updateVisible(this, 'setVisible', v)
|
|
Potree.Utils.updateVisible(this, 'setVisible', v)
|
|
} */
|
|
} */
|
|
@@ -17912,7 +17911,9 @@
|
|
this.sprite.material.map.dispose();
|
|
this.sprite.material.map.dispose();
|
|
}
|
|
}
|
|
this.sprite.material.map = texture;
|
|
this.sprite.material.map = texture;
|
|
|
|
+ var oldScale = this.sprite.scale.clone();
|
|
this.sprite.scale.set(spriteWidth * 0.01 / r, spriteHeight * 0.01 / r, 1.0);
|
|
this.sprite.scale.set(spriteWidth * 0.01 / r, spriteHeight * 0.01 / r, 1.0);
|
|
|
|
+ oldScale.equals(this.sprite.scale) || this.sprite.waitUpdate(); //重新计算各个viewport的matrix
|
|
}
|
|
}
|
|
roundRect(ctx, x, y, w, h, r) {
|
|
roundRect(ctx, x, y, w, h, r) {
|
|
ctx.beginPath();
|
|
ctx.beginPath();
|
|
@@ -42445,10 +42446,11 @@
|
|
clipDistance: 10 //消失距离
|
|
clipDistance: 10 //消失距离
|
|
}));
|
|
}));
|
|
this.titleLabel.sprite.material.depthTest = false;
|
|
this.titleLabel.sprite.material.depthTest = false;
|
|
- var line = LineDraw.createLine([new Vector3(0, 0, 0), new Vector3(0, 0, titleLineHeight)], {
|
|
|
|
|
|
+ var line = LineDraw.createFatLine([new Vector3(0, 0, 0), new Vector3(0, 0, titleLineHeight)], Object.assign({}, depthProps, {
|
|
color: '#ffffff',
|
|
color: '#ffffff',
|
|
|
|
+ lineWidth: 1,
|
|
transparent: true
|
|
transparent: true
|
|
- });
|
|
|
|
|
|
+ }));
|
|
line.renderOrder = renderOrders.line;
|
|
line.renderOrder = renderOrders.line;
|
|
group.add(line);
|
|
group.add(line);
|
|
group.add(this.titleLabel);
|
|
group.add(this.titleLabel);
|