Skip to content

Commit

Permalink
fix draco import (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed May 8, 2019
1 parent 8252902 commit 47ec628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/builder/src/writers/xviz-writer/xviz-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import {writeBinaryXVIZtoFile} from './xviz-binary-writer';
import {xvizConvertJson} from './xviz-json-encoder.js';
import {DracoEncoder, DracoDecoder} from '@loaders.gl/draco';
import {DracoWriter, DracoLoader} from '@loaders.gl/draco';

// 0-frame is an index file for timestamp metadata
// 1-frame is the metadata file for the log
Expand Down Expand Up @@ -99,8 +99,8 @@ export default class XVIZWriter {
};

if (this.options.draco) {
options.DracoEncoder = DracoEncoder;
options.DracoDecoder = DracoDecoder;
options.DracoWriter = DracoWriter;
options.DracoLoader = DracoLoader;
}

writeBinaryXVIZtoFile(this.sink, xvizDirectory, frameName(frameIndex), xvizFrame, options);
Expand Down

0 comments on commit 47ec628

Please sign in to comment.