You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Use the same axis colors consistently in the 2D and 3D editors
This commit is contained in:
@@ -1543,12 +1543,12 @@ Position3DSpatialGizmoPlugin::Position3DSpatialGizmoPlugin() {
|
||||
cursor_points.push_back(Vector3(0, -cs, 0));
|
||||
cursor_points.push_back(Vector3(0, 0, +cs));
|
||||
cursor_points.push_back(Vector3(0, 0, -cs));
|
||||
cursor_colors.push_back(Color(1, 0.5, 0.5, 0.7));
|
||||
cursor_colors.push_back(Color(1, 0.5, 0.5, 0.7));
|
||||
cursor_colors.push_back(Color(0.5, 1, 0.5, 0.7));
|
||||
cursor_colors.push_back(Color(0.5, 1, 0.5, 0.7));
|
||||
cursor_colors.push_back(Color(0.5, 0.5, 1, 0.7));
|
||||
cursor_colors.push_back(Color(0.5, 0.5, 1, 0.7));
|
||||
cursor_colors.push_back(EditorNode::get_singleton()->get_gui_base()->get_color("axis_x_color", "Editor"));
|
||||
cursor_colors.push_back(EditorNode::get_singleton()->get_gui_base()->get_color("axis_x_color", "Editor"));
|
||||
cursor_colors.push_back(EditorNode::get_singleton()->get_gui_base()->get_color("axis_y_color", "Editor"));
|
||||
cursor_colors.push_back(EditorNode::get_singleton()->get_gui_base()->get_color("axis_y_color", "Editor"));
|
||||
cursor_colors.push_back(EditorNode::get_singleton()->get_gui_base()->get_color("axis_z_color", "Editor"));
|
||||
cursor_colors.push_back(EditorNode::get_singleton()->get_gui_base()->get_color("axis_z_color", "Editor"));
|
||||
|
||||
Ref<SpatialMaterial> mat = memnew(SpatialMaterial);
|
||||
mat->set_flag(SpatialMaterial::FLAG_UNSHADED, true);
|
||||
|
||||
Reference in New Issue
Block a user