wrap progress in object

So data could be extended in the future
This commit is contained in:
casperlamboo
2017-07-19 11:02:14 +02:00
parent 83f543b62b
commit 73f0433e00
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ const loader = new THREE.JSONLoader();
const onProgress = progress => {
self.postMessage({
message: 'PROGRESS',
data: progress
data: { progress }
});
}