saving uv in mix session file

This commit is contained in:
brunoherbelin
2020-11-12 22:11:52 +01:00
parent 11a58b5adf
commit b3fd29056e
2 changed files with 8 additions and 0 deletions

View File

@@ -202,6 +202,10 @@ void SessionVisitor::visit(ImageShader &n)
uniforms->SetAttribute("mask", n.mask);
xmlCurrent_->InsertEndChild(uniforms);
XMLElement *uvtex = xmlDoc_->NewElement("uv");
uvtex->InsertEndChild( XMLElementFromGLM(xmlDoc_, n.uv) );
xmlCurrent_->InsertEndChild(uvtex);
}
void SessionVisitor::visit(ImageProcessingShader &n)