summaryrefslogtreecommitdiffstats
path: root/scene/2d/navigation_region_2d.cpp
diff options
context:
space:
mode:
authorNinni Pipping <ninni.pipping@gmail.com>2023-01-26 13:17:26 +0100
committerNinni Pipping <ninni.pipping@gmail.com>2023-01-30 08:22:06 +0100
commitbbf203bc32aae88dfc9f527db44856709572e2f1 (patch)
tree68f1a25a1d59793d84c3da9010c21c552dbb4afa /scene/2d/navigation_region_2d.cpp
parentcc7aa72f01fdea5f93b0a618fcd12db55617beb0 (diff)
downloadredot-engine-bbf203bc32aae88dfc9f527db44856709572e2f1.tar.gz
Hide clip_children for non-drawn CanvasItems
Diffstat (limited to 'scene/2d/navigation_region_2d.cpp')
-rw-r--r--scene/2d/navigation_region_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/navigation_region_2d.cpp b/scene/2d/navigation_region_2d.cpp
index fe6af8dad2..3484a9de65 100644
--- a/scene/2d/navigation_region_2d.cpp
+++ b/scene/2d/navigation_region_2d.cpp
@@ -330,6 +330,7 @@ bool NavigationRegion2D::_get(const StringName &p_name, Variant &r_ret) const {
NavigationRegion2D::NavigationRegion2D() {
set_notify_transform(true);
+ set_hide_clip_children(true);
region = NavigationServer2D::get_singleton()->region_create();
NavigationServer2D::get_singleton()->region_set_owner_id(region, get_instance_id());