private void setSelected(EditorShipPart p) {
		selected = p;

		if (options != null) {
			om.topLeft().removeChild(options);
		}

		if (p == null && editor != null) {
			om.afterInteraction(space.removeEntityLater(editor));
			editor = null;
			return;
		}

		if (p != null && p.part.type().placeable()) {
			if (editor == null) {
				editor = new BlueprintPositionEditor(p.location);
				space.addEntity(editor);
			}
			editor.bpl(p.location);
			space.addEntity(p);
		} else if (editor != null) {
			space.removeEntity(editor);
			editor = null;
		}
		if (p != null) {
			options = p.part.getOptionsOverlay(om, p.location);
			om.topLeft().addChild(options);

		}

	}