Editor: Refactored uniform scaling code.