Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix part updates on palette change #451

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ansys/pyensight/core/utils/dsg_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ def update_geom(self, cmd: dynamic_scene_graph_pb2.UpdateGeom) -> None:
self.tcoords[
cmd.chunk_offset : cmd.chunk_offset + len(cmd.flt_array)
] = cmd.flt_array

# Add the variable hash to the Part's hash, to pick up palette changes
var_cmd = self.session.variables.get(cmd.variable_id, None)
if var_cmd is not None:
self.hash.update(var_cmd.hash.encode("utf-8"))

if self.cmd.node_size_variableid == cmd.variable_id: # type: ignore
# Receive the node size var values
if self.node_sizes.size != cmd.total_array_size:
Expand Down
Loading