Skip to content

Commit

Permalink
Show theme values from default theme always, fixes #16011, fixes #13071
Browse files Browse the repository at this point in the history
  • Loading branch information
reduz committed Nov 14, 2018
1 parent 7c00f05 commit 88bfb27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scene/gui/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,14 @@ bool Control::_get(const StringName &p_name, Variant &r_ret) const {
}
void Control::_get_property_list(List<PropertyInfo> *p_list) const {

Ref<Theme> theme;
Ref<Theme> theme = Theme::get_default();
/* Using the default theme since the properties below are meant for editor only
if (data.theme.is_valid()) {
theme = data.theme;
} else {
theme = Theme::get_default();
}
}*/

{
List<StringName> names;
Expand Down

1 comment on commit 88bfb27

@volzhs
Copy link
Contributor

@volzhs volzhs commented on 88bfb27 Nov 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reduz @akien-mga This also fixed #7001

screenshot_20181115_031556

Please sign in to comment.