diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-20 14:42:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 14:42:36 +0200 |
commit | 7235f48690b67c7e67814137685fbb9c60b13643 (patch) | |
tree | c46c63470ebe2b5b4ea59c211b68772888b68449 | |
parent | 0a6626a5d11a170fe7a8d4a20feadbc30463e74c (diff) | |
parent | aa32a9f22db029cbef69d730aca653847d4daf6c (diff) |
Merge pull request #22244 from DualMatrix/debuging_the_debugger
Fixed Objects no longer showing ID in debugger.
-rw-r--r-- | editor/script_editor_debugger.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index a28a111025..b32120dea5 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -573,9 +573,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da PropertyHint h = PROPERTY_HINT_NONE; String hs = String(); - if (n.begins_with("*")) { - - n = n.substr(1, n.length()); + if (v.get_type() == Variant::OBJECT) { h = PROPERTY_HINT_OBJECT_ID; String s = v; s = s.replace("[", ""); @@ -596,9 +594,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da PropertyHint h = PROPERTY_HINT_NONE; String hs = String(); - if (n.begins_with("*")) { - - n = n.substr(1, n.length()); + if (v.get_type() == Variant::OBJECT) { h = PROPERTY_HINT_OBJECT_ID; String s = v; s = s.replace("[", ""); @@ -619,9 +615,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da PropertyHint h = PROPERTY_HINT_NONE; String hs = String(); - if (n.begins_with("*")) { - - n = n.substr(1, n.length()); + if (v.get_type() == Variant::OBJECT) { h = PROPERTY_HINT_OBJECT_ID; String s = v; s = s.replace("[", ""); |