Skip to content

Commit

Permalink
fix: FT_RTC have to be a local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ign-packo authored and zarov committed Jun 24, 2019
1 parent 5a36f93 commit a542e91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Parser/B3dmParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ export function enableDracoLoader(path, config) {
DRACOLoader.getDecoderModule();
}

const FT_RTC = new THREE.Vector3();

export default {
/** Parse b3dm buffer and extract THREE.Scene and batch table
* @param {ArrayBuffer} buffer - the b3dm buffer.
Expand Down Expand Up @@ -122,6 +120,7 @@ export default {
const headerByteLength = byteOffset + magicNumberByteLength;
const promises = [];
let FTJSON = {};
const FT_RTC = new THREE.Vector3();
if (b3dmHeader.FTJSONLength > 0) {
const sizeBegin = headerByteLength;
const jsonBuffer = buffer.slice(sizeBegin, b3dmHeader.FTJSONLength + sizeBegin);
Expand Down

0 comments on commit a542e91

Please sign in to comment.