From ea631c777da3252007b63f5eb60779349e083816 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 20 Sep 2012 14:06:01 +0000 Subject: [PATCH] From Aurelien Albert, "In the DXF plugin, DXF layers are decoded and each layer is added in a separate group, which is very usefull to retrieve a layer or display a list of all layers in the aplication. But the layers are not always children of the "model root" node : there can be a matrix transform between "model root" and "layers parent", so I've added the name "Layers" on the node which contains all layers to easily retrieve the layers groups from application code." --- src/osgPlugins/dxf/scene.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgPlugins/dxf/scene.h b/src/osgPlugins/dxf/scene.h index 84b1b1a42..0e6bf5a31 100644 --- a/src/osgPlugins/dxf/scene.h +++ b/src/osgPlugins/dxf/scene.h @@ -379,6 +379,9 @@ public: child = root; } // root = mt; + + child->setName("Layers"); + for (std::map >::iterator litr = _layers.begin(); litr != _layers.end(); ++litr) { sceneLayer* ly = (*litr).second.get();