Only set the CG and CP for the 3D renderings when the length is greater than 0. This makes the 3D rendering behavior consistent with the 2D side view Fixes #776 Signed-off-by: Billy Olsen <billy.olsen@gmail.com>