Skip to content

Commit 19888a6

Browse files
committed
fix
1 parent 0ca04eb commit 19888a6

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,7 +113,9 @@ 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 texture_data.geode_object != "RasterImage2D":
116+
if not texture_data or not texture_data.viewable_file_name.lower().endswith(
117+
".vti"
118+
):
117119
continue
118120
texture_file_path = self.get_data_file_path(texture_id)
119121
texture_reader = vtk.vtkXMLImageDataReader()

0 commit comments

Comments
 (0)