Make changes for simplified ObjectDB::get_instance() casting

This commit is contained in:
lawnjelly 2025-03-31 07:21:31 +01:00
parent 157f8805c2
commit a39897953d
15 changed files with 30 additions and 30 deletions

View file

@ -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;