diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 2664abdd2a2..1a5f57ce480 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -893,8 +893,9 @@ void make_default_theme(bool p_hidpi, Ref p_font) { void clear_default_theme() { - Theme::set_default(Ref()); - Theme::set_default_icon(Ref()); - Theme::set_default_style(Ref()); - Theme::set_default_font(Ref()); + Theme::set_project_default(NULL); + Theme::set_default(NULL); + Theme::set_default_icon(NULL); + Theme::set_default_style(NULL); + Theme::set_default_font(NULL); }