Skip to content

Commit

Permalink
fix(process): wrong pitch to color textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Nov 5, 2019
1 parent b3b900b commit 540f3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Process/LayeredMaterialNodeProcessing.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function updateLayeredMaterialNodeImagery(context, layer, node, parent) {
return context.scheduler.execute(command).then(
(result) => {
// TODO: Handle error : result is undefined in provider. throw error
const pitchs = extentsDestination.map((ext, i) => ext.offsetToParent(extentsSource[i], nodeLayer.offsetScales[i]));
const pitchs = extentsDestination.map((ext, i) => ext.offsetToParent(result[i].coords, nodeLayer.offsetScales[i]));
nodeLayer.setTextures(result, pitchs);
node.layerUpdateState[layer.id].success();
},
Expand Down

0 comments on commit 540f3dd

Please sign in to comment.