mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
-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:
parent
3b2c96139b
commit
9ddc13a5cc
4 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue