summaryrefslogtreecommitdiff
path: root/modules/visual_script
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-05 11:02:10 +0100
committerGitHub <noreply@github.com>2022-01-05 11:02:10 +0100
commit2c7fcdd7f94307a8dbf9436edc3294aaa6f87a88 (patch)
tree5471d8a1fce3e64b8b3e8907e585058c49fd5913 /modules/visual_script
parente9c50c9c50cb9b92810fd2cc2d04cb9d5b46e10e (diff)
parent6a2a9d22675f39c9287650b8831f51e41197486d (diff)
Merge pull request #56352 from Gallilus/Include-base-signals-to-VisualScriptEmitSignal
Diffstat (limited to 'modules/visual_script')
-rw-r--r--modules/visual_script/visual_script_func_nodes.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script_func_nodes.cpp b/modules/visual_script/visual_script_func_nodes.cpp
index 27d23a142e..056e1eb6a3 100644
--- a/modules/visual_script/visual_script_func_nodes.cpp
+++ b/modules/visual_script/visual_script_func_nodes.cpp
@@ -2316,10 +2316,12 @@ void VisualScriptEmitSignal::_validate_property(PropertyInfo &property) const {
property.hint = PROPERTY_HINT_ENUM;
List<StringName> sigs;
+ List<MethodInfo> base_sigs;
Ref<VisualScript> vs = get_visual_script();
if (vs.is_valid()) {
vs->get_custom_signal_list(&sigs);
+ ClassDB::get_signal_list(vs->get_instance_base_type(), &base_sigs);
}
String ml;
@@ -2329,6 +2331,12 @@ void VisualScriptEmitSignal::_validate_property(PropertyInfo &property) const {
}
ml += E;
}
+ for (const MethodInfo &E : base_sigs) {
+ if (!ml.is_empty()) {
+ ml += ",";
+ }
+ ml += E.name;
+ }
property.hint_string = ml;
}