Skip to content
Snippets Groups Projects
Commit 4853ff7a authored by dsehnal's avatar dsehnal
Browse files

fix volume streaming channel visibility

parent 1bdebda1
No related branches found
No related tags found
No related merge requests found
......@@ -276,10 +276,12 @@ const VolumeStreamingVisual = PluginStateTransform.BuiltIn({
// TODO: is this correct behavior?
if (!channel) return StateTransformer.UpdateResult.Unchanged;
const visible = b.data.repr.state.visible;
const params = createVolumeProps(a.data, newParams.channel);
const props = { ...b.data.repr.props, ...params.type.params };
b.data.repr.setTheme(Theme.create(plugin.representation.volume.themes, { volume: channel.data }, params));
await b.data.repr.createOrUpdate(props, channel.data).runInContext(ctx);
b.data.repr.setState({ visible });
b.data.sourceData = channel.data;
// TODO: set the transform here as well in case the structure moves?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment