-All variables from script are visible through get_property_list(), not just those with export()

-Added PROPERTY_USAGE_SCRIPT_VARIABLE to identify what comes from script
-closes #5146
This commit is contained in:
Juan Linietsky 2016-06-11 18:31:22 -03:00
parent 3b2c96139b
commit 9ddc13a5cc
4 changed files with 9 additions and 0 deletions

View file

@ -1611,6 +1611,9 @@ Error GDCompiler::_parse_class(GDScript *p_script, GDScript *p_owner, const GDPa
p_script->member_default_values[name]=p_class->variables[i].default_value;
}
#endif
} else {
p_script->member_info[name]=PropertyInfo(Variant::NIL,name,PROPERTY_HINT_NONE,"",PROPERTY_USAGE_SCRIPT_VARIABLE);
}
//int new_idx = p_script->member_indices.size();