diff options
| author | Juan Linietsky | 2016-06-11 18:31:22 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-06-11 18:34:49 -0300 |
| commit | 9ddc13a5ccdfdb67950bb198a6e56868f64e8852 (patch) | |
| tree | 7d23b1ed2a1d1c554c409255e825972ef0abd9bb /modules/gdscript/gd_compiler.cpp | |
| parent | 3b2c96139b39ddcfbadcd21b61e5c1ff608ad95e (diff) | |
| download | godot-9ddc13a5ccdfdb67950bb198a6e56868f64e8852.tar.gz godot-9ddc13a5ccdfdb67950bb198a6e56868f64e8852.tar.zst godot-9ddc13a5ccdfdb67950bb198a6e56868f64e8852.zip | |
Diffstat (limited to 'modules/gdscript/gd_compiler.cpp')
| -rw-r--r-- | modules/gdscript/gd_compiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gd_compiler.cpp b/modules/gdscript/gd_compiler.cpp index d51f1a4dd..7481eac62 100644 --- a/modules/gdscript/gd_compiler.cpp +++ b/modules/gdscript/gd_compiler.cpp @@ -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(); |
