We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 397da93 commit 9d58c30Copy full SHA for 9d58c30
src/opengeodeweb_viewer/rpc/mesh/mesh_protocols.py
@@ -91,7 +91,7 @@ def SetMeshVisibility(
91
@exportRpc(mesh_prefix + mesh_schemas_dict["opacity"]["rpc"])
92
def setMeshOpacity(self, params: dict[str, Union[str, int, float, bool]]) -> None:
93
validate_schema(params, self.mesh_schemas_dict["opacity"], self.mesh_prefix)
94
- data_id, opacity = str(params["id"]), params["opacity"]
+ data_id, opacity = str(params["id"]), float(params["opacity"])
95
self.SetOpacity(data_id, opacity)
96
97
@exportRpc(mesh_prefix + mesh_schemas_dict["color"]["rpc"])
0 commit comments