diff --git a/Source/UI/GraphViewer.cpp b/Source/UI/GraphViewer.cpp index 8f70dd217..d5f6a5068 100644 --- a/Source/UI/GraphViewer.cpp +++ b/Source/UI/GraphViewer.cpp @@ -458,6 +458,14 @@ void ProcessorParameterComponent::paint(Graphics& g) g.fillRect(1, 0, getWidth() - 2, getHeight() - 1); } +void ProcessorParameterComponent::updateView() +{ + for (auto editor : parameterEditors) + { + editor->updateView(); + } +} + DataStreamButton::DataStreamButton(GenericEditor* editor_, const DataStream* stream_, DataStreamInfo* info_) : Button(stream_->getName()) @@ -784,6 +792,9 @@ void GraphNode::updateStreamInfo() dataStreamInfos.clear(); dataStreamButtons.clear(); + processorParamComponent->updateView(); + processorInfoVisible = false; + infoPanel->addPanel(-1, processorParamComponent.get(), false); infoPanel->setMaximumPanelSize(processorParamComponent.get(), processorParamComponent->heightInPixels); diff --git a/Source/UI/GraphViewer.h b/Source/UI/GraphViewer.h index bb72a1ef9..4bfe1e75c 100644 --- a/Source/UI/GraphViewer.h +++ b/Source/UI/GraphViewer.h @@ -82,6 +82,9 @@ class ProcessorParameterComponent : public Component /** Paint component */ void paint(Graphics& g); + /** Called when the node needs to update the view of its parameter editors.*/ + void updateView(); + int heightInPixels; private: