Skip to content

Commit 560a585

Browse files
committed
test
1 parent 19888a6 commit 560a585

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/opengeodeweb_viewer/rpc/mesh/mesh_protocols.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ def applyTextures(self, mesh_id: str, textures_info: list[dict[str, str]]) -> No
113113
texture_id = tex_info["id"]
114114
texture_name = tex_info["texture_name"]
115115
texture_data = Data.get(texture_id)
116-
if not texture_data or not texture_data.viewable_file_name.lower().endswith(
117-
".vti"
118-
):
116+
texture_file = str(texture_data.viewable_file_name)
117+
if not texture_data or not texture_file.lower().endswith(".vti"):
119118
continue
120119
texture_file_path = self.get_data_file_path(texture_id)
121120
texture_reader = vtk.vtkXMLImageDataReader()

0 commit comments

Comments
 (0)