Fixed issue with changing a body type in the editor