mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix descriptions not showing for theme properties
(cherry picked from commit 14140eb2d9)
This commit is contained in:
parent
4cc8a689ba
commit
62dbd512cc
1 changed files with 5 additions and 0 deletions
|
|
@ -3133,6 +3133,11 @@ void EditorInspector::update_tree() {
|
||||||
StringName propname = property_prefix + p.name;
|
StringName propname = property_prefix + p.name;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
|
// Small hack for theme_overrides. They are listed under Control, but come from another class.
|
||||||
|
if (classname == "Control" && p.name.begins_with("theme_override_")) {
|
||||||
|
classname = get_edited_object()->get_class();
|
||||||
|
}
|
||||||
|
|
||||||
// Search for the property description in the cache.
|
// Search for the property description in the cache.
|
||||||
HashMap<StringName, HashMap<StringName, PropertyDocInfo>>::Iterator E = doc_info_cache.find(classname);
|
HashMap<StringName, HashMap<StringName, PropertyDocInfo>>::Iterator E = doc_info_cache.find(classname);
|
||||||
if (E) {
|
if (E) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue