/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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user