I have the following C# code:
if (engine.GetSceneByName("LAT_0", out scene))
{
//scene.BeginUpdate();
if (scene.IsGroup)
sceneGroup = (xpSceneGroup)scene; //
switch (dt[4])
{
case "cloud":
if (sceneGroup != null)
{
engine.CreateScene(true, out scene_local);
scene_local.Name = scene.Name + "_" + index.ToString();
SetCloud(scene_local, true, dt[2], dt[3], dt[5], dt[6]); //add objects
sceneGroup.AddScene(scene_local);
index++;
}
break;
}
}
and instead of adding to the LAT_0 crawl group scene is adding to the end of the scene manager without any group reference as shown in the attached picture:

Tried even to duplicate LAT_0_C and unfortunately it still adds copies at the end of the scene manager. Even after update thumbnails, it still displays added scenes at the end. Detach from parent inside right click properties is grayed which tells me that looses the parent.
Please be so kind and help me out with this issue. Thank you.
CJ