Merge pull request #51319 from pycbouh/editor-fix-theme-item-descriptions
Fix theme property descriptions in the Inspector
This commit is contained in:
commit
18c5d862e4
1 changed files with 1 additions and 2 deletions
|
@ -1907,8 +1907,7 @@ void EditorInspector::update_tree() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector<String> slices = propname.operator String().split("/");
|
Vector<String> slices = propname.operator String().split("/");
|
||||||
if (slices.size() == 2 && slices[0].begins_with("custom_")) {
|
if (slices.size() == 2 && slices[0].begins_with("theme_override_")) {
|
||||||
// Likely a theme property.
|
|
||||||
for (int i = 0; i < F->get().theme_properties.size(); i++) {
|
for (int i = 0; i < F->get().theme_properties.size(); i++) {
|
||||||
if (F->get().theme_properties[i].name == slices[1]) {
|
if (F->get().theme_properties[i].name == slices[1]) {
|
||||||
descr = DTR(F->get().theme_properties[i].description);
|
descr = DTR(F->get().theme_properties[i].description);
|
||||||
|
|
Loading…
Reference in a new issue