diff --git a/editor/plugins/gizmos/reflection_probe_gizmo_plugin.cpp b/editor/plugins/gizmos/reflection_probe_gizmo_plugin.cpp index 6a0a7592f79..0ad30e89955 100644 --- a/editor/plugins/gizmos/reflection_probe_gizmo_plugin.cpp +++ b/editor/plugins/gizmos/reflection_probe_gizmo_plugin.cpp @@ -47,9 +47,6 @@ ReflectionProbeGizmoPlugin::ReflectionProbeGizmoPlugin() { gizmo_color.a = 0.5; create_material("reflection_internal_material", gizmo_color); - gizmo_color.a = 0.025; - create_material("reflection_probe_solid_material", gizmo_color); - create_icon_material("reflection_probe_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoReflectionProbe"), EditorStringName(EditorIcons))); create_handle_material("handles"); } @@ -210,11 +207,6 @@ void ReflectionProbeGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) { p_gizmo->add_lines(lines, material); p_gizmo->add_lines(internal_lines, material_internal); - if (p_gizmo->is_selected()) { - Ref solid_material = get_material("reflection_probe_solid_material", p_gizmo); - p_gizmo->add_solid_box(solid_material, probe->get_size()); - } - p_gizmo->add_handles(handles, get_material("handles")); } diff --git a/editor/plugins/gizmos/voxel_gi_gizmo_plugin.cpp b/editor/plugins/gizmos/voxel_gi_gizmo_plugin.cpp index 749caac73ad..26882475cde 100644 --- a/editor/plugins/gizmos/voxel_gi_gizmo_plugin.cpp +++ b/editor/plugins/gizmos/voxel_gi_gizmo_plugin.cpp @@ -46,12 +46,9 @@ VoxelGIGizmoPlugin::VoxelGIGizmoPlugin() { create_material("voxel_gi_material", gizmo_color); // This gizmo draws a lot of lines. Use a low opacity to make it not too intrusive. - gizmo_color.a = 0.03; + gizmo_color.a = 0.02; create_material("voxel_gi_internal_material", gizmo_color); - gizmo_color.a = 0.025; - create_material("voxel_gi_solid_material", gizmo_color); - create_icon_material("voxel_gi_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoVoxelGI"), EditorStringName(EditorIcons))); create_handle_material("handles"); } @@ -164,11 +161,6 @@ void VoxelGIGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) { Vector handles = helper->box_get_handles(probe->get_size()); - if (p_gizmo->is_selected()) { - Ref solid_material = get_material("voxel_gi_solid_material", p_gizmo); - p_gizmo->add_solid_box(solid_material, aabb.get_size()); - } - p_gizmo->add_handles(handles, get_material("handles")); }