Skip to content
Snippets Groups Projects
Commit b53dcd1f authored by jsiegle's avatar jsiegle
Browse files

Remove updateParameterButtons from RecordNode::setParameter

parent c55c9e57
No related branches found
No related tags found
No related merge requests found
......@@ -769,22 +769,27 @@ void TriangleButton::paintButton(Graphics& g, bool isMouseOver, bool isButtonDow
}
void GenericEditor::updateParameterButtons(int parameterIndex=-1){
void GenericEditor::updateParameterButtons(int parameterIndex)
{
if (parameterEditors.size()==0)
{
//Checks if there is a parameter editor, and stops a bug if there isn't.
std::cout << "No parameterEditors" << std::endl;
}
else{
if (parameterIndex==-1){
for (int i = 0; i < parameterEditors.size(); ++i)
else
{
if (parameterIndex == -1)
{
parameterEditors[i]->channelSelectionUI();
for (int i = 0; i < parameterEditors.size(); ++i)
{
parameterEditors[i]->channelSelectionUI();
}
}
else
{
parameterEditors[parameterIndex]->channelSelectionUI();
}
}
else{
parameterEditors[parameterIndex]->channelSelectionUI();
}
std::cout << "updateParameterButtons" << std::endl;
}
}
......@@ -286,7 +286,7 @@ String RecordNode::generateDateString()
void RecordNode::setParameter(int parameterIndex, float newValue)
{
editor->updateParameterButtons(parameterIndex);
//editor->updateParameterButtons(parameterIndex);
// 0 = stop recording
// 1 = start recording
......
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