Skip to content

Commit

Permalink
Merge pull request #48253 from lyuma/fix_gdscript_export
Browse files Browse the repository at this point in the history
Fix @export and prevent non-exportable References from being exported.
  • Loading branch information
akien-mga authored Jun 11, 2021
2 parents ba82626 + 771190a commit 1f69213
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/gdscript/gdscript_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f69213

Please sign in to comment.