You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Merge pull request #52710 from Jummit/fix-debug-tooltips
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user