File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ export class AboutFace {
4949
5050 // Create or update the about face indicator
5151 // updateAboutFaceIndicator(token, tokenDirection, distance, scale);
52+ const { w : width , h : height } = token ;
5253 if ( ! token . aboutFaceIndicator || token . aboutFaceIndicator . _destroyed ) {
53- const { w : width , h : height } = token ;
5454 const container = new PIXI . Container ( { name : "aboutFaceIndicator" , width, height } ) ;
5555 container . name = "aboutFaceIndicator" ;
5656 container . width = width ;
@@ -80,6 +80,8 @@ export class AboutFace {
8080 } else {
8181 let container = token . aboutFaceIndicator ;
8282 let graphics = container . graphics ;
83+ container . x = width / 2 ;
84+ container . y = height / 2 ;
8385 graphics . x = distance ;
8486 graphics . scale . set ( scale , scale ) ;
8587 // update the rotation of the arrow
You can’t perform that action at this time.
0 commit comments