Make GDScript parser raise error when exporting Object

This commit is contained in:
George Marques 2017-12-09 15:33:23 -02:00
parent 5931190348
commit 3d8dd7b327
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D

View file

@ -3389,6 +3389,10 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
_set_error("Can't export null type.");
return;
}
if (type == Variant::OBJECT) {
_set_error("Can't export raw object type.");
return;
}
current_export.type = type;
current_export.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE;
tokenizer->advance();