We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 245d245 commit 03c70fcCopy full SHA for 03c70fc
1 file changed
webgpu/renderer.py
@@ -134,7 +134,7 @@ def check_timestamp(callback: Callable):
134
"""Decorator to handle updates for render objects. The function is only called if the timestamp has changed."""
135
136
def wrapper(self, options, *args, **kwargs):
137
- if options.timestamp == self._timestamp:
+ if options.timestamp == self._timestamp and not self.needs_update:
138
return
139
callback(self, options, *args, **kwargs)
140
self._timestamp = options.timestamp
@@ -231,7 +231,7 @@ def active(self):
231
232
@active.setter
233
def active(self, value):
234
- if value and not self._active:
+ if value != self._active:
235
self.set_needs_update()
236
self._active = value
237
0 commit comments