public StructurePlanetModel(MyObjectBuilder_EntityBase entityBase, string voxelPath)
: base(entityBase)
{
if (voxelPath != null)
{
VoxelFilepath = Path.Combine(voxelPath, Name + MyVoxelMap.V2FileExtension);
var previewFile = VoxelFilepath;
if (!File.Exists(VoxelFilepath))
{
var oldFilepath = Path.Combine(voxelPath, Name + MyVoxelMap.V1FileExtension);
if (File.Exists(oldFilepath))
{
SourceVoxelFilepath = oldFilepath;
previewFile = oldFilepath;
SpaceEngineersCore.ManageDeleteVoxelList.Add(oldFilepath);
}
}
ReadVoxelDetails(previewFile);
}
}