summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2018-11-14 18:02:21 +0100
committerJuan Linietsky <juan@godotengine.org>2018-11-14 18:02:21 +0100
commit88bfb27abf35b347b4fdb0def15b340f33c89209 (patch)
tree9d8573c11d16efb0c2eeedbb131e6509d33c3bc9 /scene/gui
parent7c00f0599e56137523f2ec6669b980d11423e9a0 (diff)
Show theme values from default theme always, fixes #16011, fixes #13071
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/control.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index bf1f2dd2e0..ea5a150478 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -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;