Skip to content

Commit

Permalink
Merge pull request #254 from 3dcitydb/hotfix-vis-image-name
Browse files Browse the repository at this point in the history
Replace # characters in texture image filenames for VIS exports
  • Loading branch information
clausnagel authored May 17, 2022
2 parents f392519 + 87a5ed7 commit 9a33f86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2216,7 +2216,7 @@ protected void fillGenericObjectForCollada(ResultSet _rs, boolean generateTextur
// textures have priority
if (texImageUri != null && texImageUri.trim().length() != 0 && texCoordsObject != null && surfaceInfo != null) {
GeometryObject texCoordsGeometry = geometryConverterAdapter.getPolygon(texCoordsObject);
texImageUri = texImageUri.replaceAll(" ", "_"); //replace spaces with underscores
texImageUri = texImageUri.replaceAll("[#| ]", "_"); // replace special characters with underscores
hasTexture = true;

// handle texture image
Expand Down

0 comments on commit 9a33f86

Please sign in to comment.