|
|
|
@ -145,9 +145,12 @@ export class ModelInfo_mark extends ModelInfo {
|
|
|
|
|
this.uiFollowHead.thickness = 0; |
|
|
|
|
this.uiFollowHead.adaptWidthToChildren = true; |
|
|
|
|
this.uiFollowHead.linkWithMesh(this.headMesh); |
|
|
|
|
this.uiFollowHead.onPointerClickObservable.add(() => { |
|
|
|
|
this.uiFollowHead.onPointerClickObservable.add((info: Vector2WithInfo) => { |
|
|
|
|
MarkWindow.instance.selectMarkDataFrom3d(instance, true); |
|
|
|
|
instance.lookAt(); |
|
|
|
|
//中间点击时才发生聚焦
|
|
|
|
|
if (info.buttonIndex == 1) { |
|
|
|
|
instance.lookAt(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.uiFollowHeadBg = new Rectangle('bg'); |
|
|
|
|