Fix pasting/duplicating nodes in Visject to call spawn event

This commit is contained in:
Wojtek Figat
2022-05-08 19:11:42 +02:00
parent 1acac3845e
commit 1d228d28bf

View File

@@ -396,6 +396,10 @@ namespace FlaxEditor.Surface
{
node.Value.OnSurfaceLoaded();
}
foreach (var node in nodes)
{
node.Value.OnSpawned();
}
// Add undo action
if (Undo != null && nodes.Count > 0)