diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-26 00:08:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 00:08:59 +0100 |
commit | e16729a8c3664f6ca00665714c7d88acd4ef603e (patch) | |
tree | 50e2fa7ba9da972ffc22ec3aa1c2a8a0dc3f29f4 /editor | |
parent | 958021b4dd1b8bb9347f2a2443b92b19fc9a8a82 (diff) | |
parent | 5b1ddcbf405020901c03ddaa2992e65ee4165e8c (diff) |
Merge pull request #43083 from DavidSichma/gizmoalpha
Gizmo handles are transparent
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index a4eab6ab4a..5038941784 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -6727,7 +6727,6 @@ void EditorNode3DGizmoPlugin::create_handle_material(const String &p_name, bool handle_material->set_point_size(handle_t->get_width()); handle_material->set_texture(StandardMaterial3D::TEXTURE_ALBEDO, handle_t); handle_material->set_albedo(Color(1, 1, 1)); - handle_material->set_transparency(StandardMaterial3D::TRANSPARENCY_ALPHA); handle_material->set_flag(StandardMaterial3D::FLAG_ALBEDO_FROM_VERTEX_COLOR, true); handle_material->set_flag(StandardMaterial3D::FLAG_SRGB_VERTEX_COLOR, true); handle_material->set_on_top_of_alpha(); @@ -6735,6 +6734,7 @@ void EditorNode3DGizmoPlugin::create_handle_material(const String &p_name, bool handle_material->set_billboard_mode(StandardMaterial3D::BILLBOARD_ENABLED); handle_material->set_on_top_of_alpha(); } + handle_material->set_transparency(StandardMaterial3D::TRANSPARENCY_ALPHA); materials[p_name] = Vector<Ref<StandardMaterial3D>>(); materials[p_name].push_back(handle_material); |