diff options
author | Lyuma <xn.lyuma@gmail.com> | 2021-05-31 12:41:51 -0700 |
---|---|---|
committer | Lyuma <xn.lyuma@gmail.com> | 2021-06-10 20:35:58 -0700 |
commit | 771190a9dbb2683f07a12b6d701df1d68c4dadf3 (patch) | |
tree | fea4ef21a3a5ff042e9e80e732a28b4bdf515e75 | |
parent | 7e1a6befdaf6c6f8627bc6ef6621666b6024cf91 (diff) |
Fix regression from 160c260 causing export of non-@export properties.
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index c7ca9449c2..49da4049bb 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -2282,9 +2282,10 @@ Error GDScriptCompiler::_parse_class_level(GDScript *p_script, const GDScriptPar } prop_info.hint = export_info.hint; prop_info.hint_string = export_info.hint_string; - prop_info.usage = export_info.usage; + prop_info.usage = export_info.usage | PROPERTY_USAGE_SCRIPT_VARIABLE; + } else { + prop_info.usage = PROPERTY_USAGE_SCRIPT_VARIABLE; } - prop_info.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE; #ifdef TOOLS_ENABLED p_script->doc_variables[name] = variable->doc_description; #endif |