internal static Layer Load3dModelFile(string path, string currentMap) { Object3dLayer layer = new Object3dLayer(); layer.LoadData(path); layer.Enabled = true; layer.Name = path.Substring(path.LastIndexOf('\\') + 1); LayerList.Add(layer.ID, layer); layer.ReferenceFrame = currentMap; AllMaps[currentMap].Layers.Add(layer); AllMaps[currentMap].Open = true; version++; LoadTree(); return layer; }