Skip to content

Commit f4a1e59

Browse files
committed
no timestamp check in functiondata -> explicit set_needs_update
1 parent 40f4f23 commit f4a1e59

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ngsolve_webgpu/cf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,10 @@ def max_values(self):
251251
"""Dict mapping component option value -> max. {-1: norm, 0: comp0, ...}"""
252252
return {i - 1: self.maxval[i] for i in range(len(self.maxval))}
253253

254-
@check_timestamp
255254
def update(self, options: RenderOptions):
255+
if not self.needs_update:
256+
return
257+
self._timestamp = options.timestamp
256258
self.mesh_data.update(options)
257259
self._create_data()
258260

0 commit comments

Comments
 (0)