Merge pull request #22517 from DualMatrix/debugging_the_debugger_2
Fixed Objects do not showing their drop down in debugger.
This commit is contained in:
commit
dea0f69296
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "script_editor_debugger.h"
|
||||
|
||||
#include "core/io/marshalls.h"
|
||||
#include "core/project_settings.h"
|
||||
#include "core/ustring.h"
|
||||
#include "editor_node.h"
|
||||
|
@ -577,6 +578,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
|
||||
if (v.get_type() == Variant::OBJECT) {
|
||||
h = PROPERTY_HINT_OBJECT_ID;
|
||||
v = ObjectDB::get_instance(Object::cast_to<EncodedObjectAsID>(v)->get_object_id());
|
||||
String s = v;
|
||||
s = s.replace("[", "");
|
||||
hs = s.get_slice(":", 0);
|
||||
|
@ -598,6 +600,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
|
||||
if (v.get_type() == Variant::OBJECT) {
|
||||
h = PROPERTY_HINT_OBJECT_ID;
|
||||
v = ObjectDB::get_instance(Object::cast_to<EncodedObjectAsID>(v)->get_object_id());
|
||||
String s = v;
|
||||
s = s.replace("[", "");
|
||||
hs = s.get_slice(":", 0);
|
||||
|
@ -619,6 +622,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
|
||||
if (v.get_type() == Variant::OBJECT) {
|
||||
h = PROPERTY_HINT_OBJECT_ID;
|
||||
v = ObjectDB::get_instance(Object::cast_to<EncodedObjectAsID>(v)->get_object_id());
|
||||
String s = v;
|
||||
s = s.replace("[", "");
|
||||
hs = s.get_slice(":", 0);
|
||||
|
|
Loading…
Reference in a new issue