Fix nodes
This commit is contained in:
parent
2e0cb27987
commit
3c1c86f952
6 changed files with 297 additions and 57 deletions
|
|
@ -481,8 +481,14 @@ void WarpGraphModel::refreshFromClient() {
|
|||
if (existing != m_pwToQt.end()) {
|
||||
QtNodes::NodeId qtId = existing->second;
|
||||
auto &data = m_nodes[qtId];
|
||||
bool typeChanged = (data.info.is_virtual != nodeInfo.is_virtual);
|
||||
data.info = nodeInfo;
|
||||
|
||||
if (typeChanged) {
|
||||
m_styleCache.erase(qtId);
|
||||
Q_EMIT nodeUpdated(qtId);
|
||||
}
|
||||
|
||||
bool portsMissing =
|
||||
data.inputPorts.empty() && data.outputPorts.empty();
|
||||
if (portsMissing) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue