You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Mono: Fix warning about exported static fields
This commit is contained in:
@@ -1271,6 +1271,7 @@ bool CSharpScript::_update_exports() {
|
|||||||
GDMonoField *field = fields[i];
|
GDMonoField *field = fields[i];
|
||||||
|
|
||||||
if (field->is_static()) {
|
if (field->is_static()) {
|
||||||
|
if (field->has_attribute(CACHED_CLASS(ExportAttribute)))
|
||||||
ERR_PRINTS("Cannot export field because it is static: " + top->get_full_name() + "." + field->get_name());
|
ERR_PRINTS("Cannot export field because it is static: " + top->get_full_name() + "." + field->get_name());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user