Copy texture coordinates from OBJ into flex. Fixes #2464.
PiperOrigin-RevId: 732109960 Change-Id: I506b3540ab5d489ce8f10d0c473919611ccb654a
This commit is contained in:
committed by
Copybara-Service
parent
06e217df7e
commit
7651cb1b33
@@ -158,6 +158,10 @@ void mjXWriter::OneFlex(XMLElement* elem, const mjCFlex* flex) {
|
||||
text = VectorToString(flex->get_texcoord());
|
||||
WriteAttrTxt(elem, "texcoord", text);
|
||||
}
|
||||
if (!flex->get_facetexcoord().empty()) {
|
||||
text = VectorToString(flex->get_facetexcoord());
|
||||
WriteAttrTxt(elem, "facetexcoord", text);
|
||||
}
|
||||
if (!flex->get_nodebody().empty()) {
|
||||
text = VectorToString(flex->get_nodebody());
|
||||
WriteAttrTxt(elem, "node", text);
|
||||
|
||||
Reference in New Issue
Block a user