Merge pull request #14459 from vnen/gdscript-object-export

Make GDScript parser raise error when exporting Object
This commit is contained in:
Rémi Verschelde 2017-12-09 19:04:57 +01:00 committed by GitHub
commit bdf0c93a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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();