Test thing
This commit is contained in:
parent
6142a4eecd
commit
fb2ed2f016
1 changed files with 11 additions and 12 deletions
|
@ -69,19 +69,18 @@ class AbstractLight:
|
|||
self._enable_auto_update: bool = False
|
||||
|
||||
for key, rValueObject in self.__class__.__dict__.items():
|
||||
if isinstance(rValueObject, BaseReactiveValue):
|
||||
# On copie la valeur
|
||||
val = deepcopy(rValueObject.value)
|
||||
if isinstance(val, ReactiveMixin):
|
||||
val.light = self
|
||||
val.key = key
|
||||
self._attrs_to_dmx[key] = rValueObject.attr_to_dmx()
|
||||
# On copie la valeur
|
||||
val = deepcopy(rValueObject.value)
|
||||
if isinstance(val, ReactiveMixin):
|
||||
val.light = self
|
||||
val.key = key
|
||||
self._attrs_to_dmx[key] = rValueObject.attr_to_dmx()
|
||||
|
||||
for i, length, callback in rValueObject.dmx_to_attr():
|
||||
for k in range(i, i + length):
|
||||
self._dmx_to_attrs[k] = (key, i, length, callback)
|
||||
# Finally set the attributes to their value
|
||||
setattr(self, key, val)
|
||||
for i, length, callback in rValueObject.dmx_to_attr():
|
||||
for k in range(i, i + length):
|
||||
self._dmx_to_attrs[k] = (key, i, length, callback)
|
||||
# Finally set the attributes to their value
|
||||
setattr(self, key, val)
|
||||
self._enable_auto_update: bool = True
|
||||
|
||||
def register_universe(self, universe: "Universe") -> None:
|
||||
|
|
Loading…
Reference in a new issue