mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +00:00
Make changes for simplified ObjectDB::get_instance() casting
This commit is contained in:
parent
157f8805c2
commit
a39897953d
15 changed files with 30 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue