annotation tool: Fix viewer not being in scope.
Like the other functions do. It only works on the examples because they put `viewer` into the `window` scope.
This commit is contained in:
parent
1f37cd3932
commit
e2f5df6208
@ -71,7 +71,7 @@ export class AnnotationTool extends EventDispatcher{
|
||||
};
|
||||
|
||||
let drop = (e) => {
|
||||
viewer.scene.scene.remove(this.s);
|
||||
this.viewer.scene.scene.remove(this.s);
|
||||
this.s.removeEventListener("drag", drag);
|
||||
this.s.removeEventListener("drop", drop);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user