Skip to content

Commit f1c1bdd

Browse files
russelltgpaceholder
authored andcommitted
Add miscalenous changes--not sure about them
1 parent f2875ed commit f1c1bdd

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

src/Connection.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ removeFromNodes() const
220220
if (auto n = _outNode.lock())
221221
n->nodeState().eraseConnection(PortType::Out, _outPortIndex, id());
222222

223-
updated(*this);
224223
}
225224

226225

src/FlowScene.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ createNode(std::unique_ptr<NodeDataModel> && dataModel)
140140

141141
_nodes[node->id()] = node;
142142

143-
nodeCreated(*node);
143+
nodeCreated(node);
144144
return node;
145145
}
146146

@@ -167,7 +167,7 @@ restoreNode(Properties const &p)
167167

168168
_nodes[node->id()] = node;
169169

170-
nodeCreated(*node);
170+
nodeCreated(node);
171171
return node;
172172
}
173173

@@ -176,7 +176,7 @@ void
176176
FlowScene::
177177
removeNode(std::shared_ptr<Node> node)
178178
{
179-
nodeDeleted(*node);
179+
nodeDeleted(node);
180180

181181
auto deleteConnections = [&node, this] (PortType portType)
182182
{

src/FlowScene.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ class NODE_EDITOR_PUBLIC FlowScene
7777

7878
signals:
7979
void
80-
nodeCreated(Node& n);
80+
nodeCreated(const std::shared_ptr<Node>& n);
8181
void
82-
nodeDeleted(Node& n);
82+
nodeDeleted(const std::shared_ptr<Node>& n);
8383

8484
void
8585
connectionCreated(Connection& c);

src/Node.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ propagateData(std::shared_ptr<NodeData> nodeData,
177177
{
178178
_nodeDataModel->setInData(nodeData, inPortIndex);
179179

180-
_nodeGeometry.recalculateSize();
181-
_nodeGraphicsObject->setGeometryChanged();
182-
_nodeGraphicsObject->update();
183180
}
184181

185182

0 commit comments

Comments
 (0)