summaryrefslogtreecommitdiff
path: root/scene/2d/collision_polygon_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/collision_polygon_2d.cpp
parentcc7aa72f01fdea5f93b0a618fcd12db55617beb0 (diff)
Hide clip_children for non-drawn CanvasItems
Diffstat (limited to 'scene/2d/collision_polygon_2d.cpp')
-rw-r--r--scene/2d/collision_polygon_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/collision_polygon_2d.cpp b/scene/2d/collision_polygon_2d.cpp
index 0e18f77b8a..9bd1815b26 100644
--- a/scene/2d/collision_polygon_2d.cpp
+++ b/scene/2d/collision_polygon_2d.cpp
@@ -323,4 +323,5 @@ void CollisionPolygon2D::_bind_methods() {
CollisionPolygon2D::CollisionPolygon2D() {
set_notify_local_transform(true);
+ set_hide_clip_children(true);
}