Skip to content

Commit c41a038

Browse files
committed
Emit nodePlaced on restoring paceholder#234
1 parent 2b4274a commit c41a038

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/nodes/internal/FlowScene.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class NODE_EDITOR_PUBLIC FlowScene
5252
PortIndex portIndexOut,
5353
TypeConverter const & converter = TypeConverter{});
5454

55-
std::shared_ptr<Connection>restoreConnection(QJsonObject const &connectionJson);
55+
std::shared_ptr<Connection> restoreConnection(QJsonObject const &connectionJson);
5656

5757
void deleteConnection(Connection& connection);
5858

src/FlowScene.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ restoreNode(QJsonObject const& nodeJson)
230230
auto nodePtr = node.get();
231231
_nodes[node->id()] = std::move(node);
232232

233+
nodePlaced(*nodePtr);
233234
nodeCreated(*nodePtr);
234235
return *nodePtr;
235236
}

0 commit comments

Comments
 (0)