/nodeparamviewwidgetbridge: block combobox signals when updating from node

Prevents unnecessary re-caching caused by the combobox signalling that its
value has changed when we're really just setting the value that the node already
has.
This commit is contained in:
itsmattkc
2020-04-15 02:52:24 +10:00
parent 07dfe1c364
commit 7ea8c52c78
@@ -479,7 +479,10 @@ void NodeParamViewWidgetBridge::UpdateWidgetValues()
}
case NodeParam::kCombo:
{
static_cast<QComboBox*>(widgets_.first())->setCurrentIndex(input_->get_value_at_time(node_time).toInt());
QComboBox* cb = static_cast<QComboBox*>(widgets_.first());
cb->blockSignals(true);
cb->setCurrentIndex(input_->get_value_at_time(node_time).toInt());
cb->blockSignals(false);
break;
}
case NodeParam::kFootage: