mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Make changes for simplified ObjectDB::get_instance() casting
This commit is contained in:
@@ -1319,7 +1319,7 @@ void ScriptEditorDebugger::_notification(int p_what) {
|
||||
if (inspect_edited_object_timeout < 0) {
|
||||
inspect_edited_object_timeout = EditorSettings::get_singleton()->get("debugger/remote_inspect_refresh_interval");
|
||||
if (inspected_object_id) {
|
||||
if (ScriptEditorDebuggerInspectedObject *obj = Object::cast_to<ScriptEditorDebuggerInspectedObject>(ObjectDB::get_instance(editor->get_editor_history()->get_current()))) {
|
||||
if (ScriptEditorDebuggerInspectedObject *obj = ObjectDB::get_instance<ScriptEditorDebuggerInspectedObject>(editor->get_editor_history()->get_current())) {
|
||||
if (obj->remote_object_id == inspected_object_id) {
|
||||
//take the chance and re-inspect selected object
|
||||
Array msg;
|
||||
|
||||
Reference in New Issue
Block a user