修改类型。

This commit is contained in:
tengge1 2019-12-05 22:00:11 +08:00
parent e4b8b31846
commit 74a2e213c6

View File

@ -37,7 +37,7 @@ class PointMarker extends THREE.Mesh {
super(geometry, material);
this.userData.type = 'text';
this.userData.type = 'pointMarker';
this.setText(text);
app.on(`resize.${this.constructor.name}${ID--}`, this.onResize.bind(this));