From ca2f3403840cae9748a38c98b7af1e9e60c63475 Mon Sep 17 00:00:00 2001 From: Micky Date: Wed, 3 Jan 2024 00:13:04 +0100 Subject: [PATCH] Fix missing autocompletion for inheriting classes --- core/input/input.cpp | 1 + scene/2d/animated_sprite_2d.cpp | 2 +- scene/3d/sprite_3d.cpp | 2 +- scene/animation/animation_player.cpp | 2 +- scene/gui/control.cpp | 2 +- scene/main/scene_tree.cpp | 1 + scene/resources/material.cpp | 2 +- 7 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/input/input.cpp b/core/input/input.cpp index 8f976cbaa39..7fe850069a8 100644 --- a/core/input/input.cpp +++ b/core/input/input.cpp @@ -198,6 +198,7 @@ void Input::get_argument_options(const StringName &p_function, int p_idx, Listpush_back(name.quote()); } } + Object::get_argument_options(p_function, p_idx, r_options); } void Input::VelocityTrack::update(const Vector2 &p_delta_p) { diff --git a/scene/2d/animated_sprite_2d.cpp b/scene/2d/animated_sprite_2d.cpp index 08b315fa6c6..63a478fd94d 100644 --- a/scene/2d/animated_sprite_2d.cpp +++ b/scene/2d/animated_sprite_2d.cpp @@ -584,7 +584,7 @@ void AnimatedSprite2D::get_argument_options(const StringName &p_function, int p_ r_options->push_back(String(name).quote()); } } - Node::get_argument_options(p_function, p_idx, r_options); + Node2D::get_argument_options(p_function, p_idx, r_options); } #ifndef DISABLE_DEPRECATED diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index b8b0d31d451..4f337a66ecf 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -1446,7 +1446,7 @@ void AnimatedSprite3D::get_argument_options(const StringName &p_function, int p_ r_options->push_back(String(name).quote()); } } - Node::get_argument_options(p_function, p_idx, r_options); + SpriteBase3D::get_argument_options(p_function, p_idx, r_options); } #ifndef DISABLE_DEPRECATED diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 02b74c91889..162882fd9e5 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -665,7 +665,7 @@ void AnimationPlayer::get_argument_options(const StringName &p_function, int p_i r_options->push_back(String(name).quote()); } } - Node::get_argument_options(p_function, p_idx, r_options); + AnimationMixer::get_argument_options(p_function, p_idx, r_options); } void AnimationPlayer::_animation_removed(const StringName &p_name, const StringName &p_library) { diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 84ca6bac5ba..a2112279909 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -205,7 +205,7 @@ void Control::set_root_layout_direction(int p_root_dir) { void Control::get_argument_options(const StringName &p_function, int p_idx, List *r_options) const { ERR_READ_THREAD_GUARD; - Node::get_argument_options(p_function, p_idx, r_options); + CanvasItem::get_argument_options(p_function, p_idx, r_options); if (p_idx == 0) { List sn; diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index b6fbd70e141..ee0e7721a0a 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1728,6 +1728,7 @@ void SceneTree::get_argument_options(const StringName &p_function, int p_idx, Li } } } + MainLoop::get_argument_options(p_function, p_idx, r_options); } void SceneTree::set_disable_node_threading(bool p_disable) { diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index 1b74063ff45..dba4e4eb347 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -468,7 +468,7 @@ void ShaderMaterial::get_argument_options(const StringName &p_function, int p_id } } } - Resource::get_argument_options(p_function, p_idx, r_options); + Material::get_argument_options(p_function, p_idx, r_options); } bool ShaderMaterial::_can_do_next_pass() const {