diff options
author | kobewi <kobewi4e@gmail.com> | 2022-05-06 16:00:30 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-05-06 16:00:30 +0200 |
commit | 7b101c6fe7b0d8ab0b2d5a7b344fa4b2b3484e0b (patch) | |
tree | c4ef6dadedbb51f12a855d265b09a70885c5c821 | |
parent | de3ccf7a69ec34de6cc386806dfeee92d3537325 (diff) |
Fix VisualScript export variables
-rw-r--r-- | modules/visual_script/visual_script.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index e31550b203..7028fead9a 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -930,6 +930,9 @@ void VisualScript::get_script_property_list(List<PropertyInfo> *p_list) const { get_variable_list(&vars); for (const StringName &E : vars) { + if (!variables[E]._export) { + continue; + } PropertyInfo pi = variables[E].info; pi.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE; p_list->push_back(pi); |