Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
5e10ce57
Commit
5e10ce57
authored
Apr 09, 2019
by
Markus Scheidgen
Browse files
Fix wong material id for vr download.
#133
parent
bfb7ee7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/material-mod/MaterialMod.js
View file @
5e10ce57
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment