Skip to content

Commit 6c38e0d

Browse files
committed
test
1 parent 560a585 commit 6c38e0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/opengeodeweb_viewer/rpc/mesh/mesh_protocols.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ 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:
117+
continue
116118
texture_file = str(texture_data.viewable_file_name)
117-
if not texture_data or not texture_file.lower().endswith(".vti"):
119+
if not texture_file.lower().endswith(".vti"):
118120
continue
119121
texture_file_path = self.get_data_file_path(texture_id)
120122
texture_reader = vtk.vtkXMLImageDataReader()

0 commit comments

Comments
 (0)