This may not be a bug, but I haven't found a reason for this behavior or a solution to the problem.
I am creating a new part, a hybrid armor based on a base hybrid armor. I use the same layers as in the base part, but during testing I find that the ion beam goes under the new part instead of over it.
Found out that it is this block that is causing the problem:
{
Layer = “external_walls”
DamageLevels
[
{File = “floor.png”; NormalsFile = “./Data/ships/terran/armor_structure_hybrid_1x2/external_wall_normals.png”; Size = [1, 2]}
{File = “floor_33.png”; NormalsFile = “./Data/ships/terran/armor_structure_hybrid_1x2/external_wall_normals_33.png”; Size = [1, 2]}
{File = “floor_66.png”; NormalsFile = “./Data/ships/terran/armor_structure_hybrid_1x2/external_wall_normals_66.png”; Size = [1, 2]}
]
}```
By removing it, the base armor is drawn correctly under the beam, but also with its own sprites, which I'm not happy with.