Skip to content

Commit

Permalink
Fix part updates on palette change (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-bremer authored Oct 11, 2024
1 parent 054d9f8 commit 056a602
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 056a602

Please sign in to comment.