Commit 554064d6 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fix wong material id for vr download. #133

parent 384a5e47
......@@ -235,8 +235,10 @@ class MaterialMod{
this.thermalDetails.setMaterialData();
this.elasticDetails.setMaterialData();
//console.log("MATDATA LOADED: ");
if (this.structureViewer !== null)
if (this.structureViewer !== null) {
this.structureViewer.load(util.getCellDataForViewer(materialData));
this.structureViewer.setMaterialId(materialData.id);
}
util.serverReq(util.getMaterialXsURL('calculations',matId), e4 => {
DataStore.setCalculations(JSON.parse(e4.target.response).results);
......@@ -345,6 +347,7 @@ class StructureViewerWrapper{
}
setMaterialId(id){
console.log('pass material id ' + id)
this.vrDropDown.setMaterialId(id);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment