Fixed exception when dragging and dropping a sprite in 3D mode.