Skip to content
Snippets Groups Projects
Commit efc370c1 authored by Lars Bilke's avatar Lars Bilke
Browse files

vtkGLTFExporter: fixed writing of bin files

When FileName does not contain a path, e.g. FileName = 'my_file.gltf'
parent f29324c2
No related branches found
No related tags found
2 merge requests!5987Backport issue #17682 fix into last release,!5722Enhancements vtkGLTFExporter
......@@ -142,7 +142,10 @@ void WriteBufferAndView(vtkDataArray *inda, const char *fileName, bool inlineDat
std::string fullPath =
vtksys::SystemTools::GetFilenamePath(fileName);
fullPath += "/";
if (fullPath.size() > 0)
{
fullPath += "/";
}
fullPath += result;
// now write the data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment