From 867d073b98344b848c96012418912a7e72841a31 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 13 Feb 2020 16:03:10 -0300 Subject: Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr. --- scene/debugger/script_debugger_remote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/debugger/script_debugger_remote.cpp') diff --git a/scene/debugger/script_debugger_remote.cpp b/scene/debugger/script_debugger_remote.cpp index 3608a11ed7..80972ba3d1 100644 --- a/scene/debugger/script_debugger_remote.cpp +++ b/scene/debugger/script_debugger_remote.cpp @@ -106,7 +106,7 @@ void ScriptDebuggerRemote::_put_variable(const String &p_name, const Variant &p_ packet_peer_stream->put_var(p_name); Variant var = p_variable; - if (p_variable.get_type() == Variant::OBJECT && !ObjectDB::instance_validate(p_variable)) { + if (p_variable.get_type() == Variant::OBJECT && p_variable.get_validated_object() == nullptr) { var = Variant(); } -- cgit v1.2.3