summaryrefslogtreecommitdiff
path: root/scene/3d/portal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/portal.cpp')
-rw-r--r--scene/3d/portal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/portal.cpp b/scene/3d/portal.cpp
index 12b9dc4b7a..fe627c2cc0 100644
--- a/scene/3d/portal.cpp
+++ b/scene/3d/portal.cpp
@@ -106,7 +106,7 @@ RES Portal::_get_gizmo_geometry() const {
mat->set_line_width(4);
mat->set_flag(Material::FLAG_DOUBLE_SIDED,true);
mat->set_flag(Material::FLAG_UNSHADED,true);
- mat->set_hint(Material::HINT_NO_DEPTH_DRAW,true);
+// mat->set_depth_draw_mode(Material::DEPTH_DRAW_NEVER,true);
surface_tool->begin(Mesh::PRIMITIVE_LINES);
surface_tool->set_material(mat);