We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8339579 commit 1575d04Copy full SHA for 1575d04
radiantcore/selection/algorithm/Transformation.cpp
@@ -284,6 +284,19 @@ class SelectionCloner :
284
// Add the node to its parent
285
pair.second->addChildNode(pair.first);
286
287
+ // Move the cloned node (and its children) to the active layer
288
+ auto rootNode = pair.second->getRootNode();
289
+ if (rootNode)
290
+ {
291
+ auto activeLayer = rootNode->getLayerManager().getActiveLayer();
292
+ pair.first->moveToLayer(activeLayer);
293
+ pair.first->foreachNode([=](const scene::INodePtr& child)
294
295
+ child->moveToLayer(activeLayer);
296
+ return true;
297
+ });
298
+ }
299
+
300
if (select)
301
{
302
Node_setSelected(pair.first, true);
0 commit comments