Use the layer type when adding a part to a featureless entry. Fix #8459
Merge pull request #984 from BioEcoForests/master

Use the layer type when adding a part to a featureless entry. Fix #8459