Merge pull request #52710 from Jummit/fix-debug-tooltips

This commit is contained in:
Yuri Roubinsky 2022-01-12 22:03:52 +03:00 committed by GitHub
commit eba047eff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,5 +270,11 @@ void EditorDebuggerInspector::clear_stack_variables() {
}
String EditorDebuggerInspector::get_stack_variable(const String &p_var) {
return variables->get_variant(p_var);
for (Map<StringName, Variant>::Element *E = variables->prop_values.front(); E; E = E->next()) {
String v = E->key().operator String();
if (v.get_slice("/", 1) == p_var) {
return variables->get_variant(v);
}
}
return String();
}