Skip to content

Fix error when instantiating IndexedControlValue#12

Open
jpburstrom wants to merge 6 commits into
scztt:masterfrom
jpburstrom:master
Open

Fix error when instantiating IndexedControlValue#12
jpburstrom wants to merge 6 commits into
scztt:masterfrom
jpburstrom:master

Conversation

@jpburstrom

Copy link
Copy Markdown

Changing *defaultSpec from ItemsSpec (which is probably a typo) to ItemSpec. (ItemsSpec is in Modality Toolkit but that's not a Connection dependency.)

Changing defaultSpec from ItemsSpec to ItemSpec
(ItemsSpec is in Modality Toolkit but not a Connection dependency)
Throwing error when items doesn't include value
Making it possible to use arbitrary values as on/off states. This will
throw if instantiated with a non-existing value.

This changes the behaviour of input_: input argument above *and
including* 0.5 will set value to \on.
Fix making new connection after freeing previous connections
Make UpdateFilter and UpdateTransform subclass UpdateForwarderWithInit,
which keeps track of last object sending a
\changed message. Everytime a dependant is added to the forwarder,
this object is asked to resend its value.

This is a bit of a kludge, but fixes forwarding initial values through a
chain of several forwarders, which would otherwise stop at first
UpdateForwarder subclass when the value is sent before the dependency
chain is ready.

The value will be sent once for every
link in the forwarder chain, which might build up and cause issues for
complex chains.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant