You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Make GDScript parser raise error when exporting Object
This commit is contained in:
@@ -3389,6 +3389,10 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||||||
_set_error("Can't export null type.");
|
_set_error("Can't export null type.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (type == Variant::OBJECT) {
|
||||||
|
_set_error("Can't export raw object type.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
current_export.type = type;
|
current_export.type = type;
|
||||||
current_export.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE;
|
current_export.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE;
|
||||||
tokenizer->advance();
|
tokenizer->advance();
|
||||||
|
|||||||
Reference in New Issue
Block a user