From 21f2fff82ec67e30fbc383dc1097b2e34d2d7f6e Mon Sep 17 00:00:00 2001 From: geequlim Date: Wed, 2 Aug 2017 22:31:43 +0800 Subject: [PATCH] Don't re-query remote object while debugging every frame --- editor/script_editor_debugger.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index d346a03d43c..454e09b7e29 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -997,6 +997,7 @@ void ScriptEditorDebugger::_notification(int p_what) { msg.push_back("inspect_object"); msg.push_back(inspected_object_id); ppeer->put_var(msg); + inspected_object_id = 0; } } } @@ -1010,6 +1011,7 @@ void ScriptEditorDebugger::_notification(int p_what) { msg.push_back("inspect_object"); msg.push_back(inspected_object_id); ppeer->put_var(msg); + inspected_object_id = 0; } } }