瀏覽代碼

Show theme values from default theme always, fixes #16011, fixes #13071

Juan Linietsky 7 年之前
父節點
當前提交
88bfb27abf
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      scene/gui/control.cpp

+ 3 - 2
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;