Fixed part editing. Only works on faces. Also some other fixes.

Signed-off-by: Patrick <patrick@eclipticcode.com>