@@ -75,9 +75,9 @@ def __create_grid_objects(self):
75
75
camera_axes = self .camera_axes
76
76
# Locate centre of axes
77
77
if self .__relative_cam :
78
- x_origin , y_origin , z_origin = round (self .__scene .center .x ),\
79
- round (self .__scene .center .y ),\
80
- round (self .__scene .center .z )
78
+ x_origin , y_origin , z_origin = round (self .__scene .center .x , 2 ),\
79
+ round (self .__scene .center .y , 2 ),\
80
+ round (self .__scene .center .z , 2 )
81
81
self .__focal_point = [x_origin , y_origin , z_origin ]
82
82
else :
83
83
x_origin , y_origin , z_origin = self .__focal_point [0 ], \
@@ -185,9 +185,9 @@ def __move_grid_objects(self):
185
185
camera_axes = self .camera_axes
186
186
# Locate centre of axes
187
187
if self .__relative_cam :
188
- x_origin , y_origin , z_origin = round (self .__scene .center .x ), \
189
- round (self .__scene .center .y ), \
190
- round (self .__scene .center .z )
188
+ x_origin , y_origin , z_origin = round (self .__scene .center .x , 2 ), \
189
+ round (self .__scene .center .y , 2 ), \
190
+ round (self .__scene .center .z , 2 )
191
191
self .__focal_point = [x_origin , y_origin , z_origin ]
192
192
# Convert focal point for 2D rendering. Puts focus point in centre of the view
193
193
if not self .__is_3d :
0 commit comments