Browse Source

Increase NavigationLink3D gizmo detail to match other circle/sphere 3D gizmos

This makes the gizmo look less "angular".
Hugo Locurcio 7 months ago
parent
commit
375e43b39b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/plugins/gizmos/navigation_link_3d_gizmo_plugin.cpp

+ 2 - 2
editor/plugins/gizmos/navigation_link_3d_gizmo_plugin.cpp

@@ -70,9 +70,9 @@ void NavigationLink3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
 
 
 	p_gizmo->clear();
 	p_gizmo->clear();
 
 
-	// Number of points in an octant. So there ill be 8 * points_in_octant points in total.
+	// Number of points in an octant. So there will be 8 * points_in_octant points in total.
 	// Correspond to the smoothness of the circle.
 	// Correspond to the smoothness of the circle.
-	const uint32_t points_in_octant = 4;
+	const uint32_t points_in_octant = 8;
 	real_t inc = (Math_PI / (4 * points_in_octant));
 	real_t inc = (Math_PI / (4 * points_in_octant));
 
 
 	Vector<Vector3> lines;
 	Vector<Vector3> lines;