Skip to content

Commit

Permalink
Fix missing EventDispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Sep 28, 2021
1 parent 67a8d4f commit 07bb155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const OBJLoaderWorker = {
{ code: 'const Material = THREE.Material;\n' },
{ code: 'const Texture = THREE.Texture;\n' },
{ code: 'const BufferGeometry = THREE.BufferGeometry;\n' },
{ code: 'const EventDispatcher = THREE.EventDispatcher;\n' },
{ code: '\n\n' },
{ url: objLoaderLocation },
{ code: '\n\nconst OBJLoader = THREE.OBJLoader;\n\n' },
Expand Down
3 changes: 2 additions & 1 deletion examples/webgl_loader_workertaskmanager.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@

return [
{ url: threeJsLocation },
{ code: ObjectUtils.serializeClass( THREE.BufferGeometry ) },
{ code: 'const BufferGeometry = THREE.BufferGeometry;\n' },
{ code: 'const EventDispatcher = THREE.EventDispatcher;\n' },
{ code: ObjectUtils.serializeClass( DataTransport ) },
{ code: ObjectUtils.serializeClass( GeometryTransport ) },
{ code: ObjectUtils.serializeClass( MaterialUtils ) },
Expand Down

0 comments on commit 07bb155

Please sign in to comment.