summaryrefslogtreecommitdiff
path: root/scene/2d/canvas_group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/canvas_group.cpp')
-rw-r--r--scene/2d/canvas_group.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/canvas_group.cpp b/scene/2d/canvas_group.cpp
index 0e0aecf224..0f0e583ea7 100644
--- a/scene/2d/canvas_group.cpp
+++ b/scene/2d/canvas_group.cpp
@@ -84,4 +84,5 @@ CanvasGroup::CanvasGroup() {
set_fit_margin(10.0); //sets things
}
CanvasGroup::~CanvasGroup() {
+ RS::get_singleton()->canvas_item_set_canvas_group_mode(get_canvas_item(), RS::CANVAS_GROUP_MODE_DISABLED);
}