| 187 | |
| 188 | |
| 189 | void |
| 190 | Node:: |
| 191 | propagateData(std::shared_ptr<NodeData> nodeData, |
| 192 | PortIndex inPortIndex) const |
| 193 | { |
| 194 | _nodeDataModel->setInData(std::move(nodeData), inPortIndex); |
| 195 | |
| 196 | //Recalculate the nodes visuals. A data change can result in the node taking more space than before, so this forces a recalculate+repaint on the affected node |
| 197 | _nodeGraphicsObject->setGeometryChanged(); |
| 198 | _nodeGeometry.recalculateSize(); |
| 199 | _nodeGraphicsObject->update(); |
| 200 | _nodeGraphicsObject->moveConnections(); |
| 201 | } |
| 202 | |
| 203 | |
| 204 | void |