diff options
| author | Juan Linietsky | 2014-10-27 22:54:32 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-10-27 22:54:32 -0300 |
| commit | e82dc402052a47b44bb3bcf50ee4801257f92778 (patch) | |
| tree | 01c2cd8692b5569cae778f6504b76b3d1f9ccdad /core/io/config_file.cpp | |
| parent | 9608d4255eb6c76b1c4496f4494c829133e096f4 (diff) | |
| download | godot-e82dc402052a47b44bb3bcf50ee4801257f92778.tar.gz godot-e82dc402052a47b44bb3bcf50ee4801257f92778.tar.zst godot-e82dc402052a47b44bb3bcf50ee4801257f92778.zip | |
-Much improvement to baked light baker
-Fixed many bugs in stretch mode
-Fixes to camera project and unproject as consequence of the above
-added setget to script (documented in script doc)
-more fixes to collada exporter for blender
Diffstat (limited to 'core/io/config_file.cpp')
| -rw-r--r-- | core/io/config_file.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp index 45e8cf69a..b707fd9c1 100644 --- a/core/io/config_file.cpp +++ b/core/io/config_file.cpp @@ -471,9 +471,12 @@ static Variant _decode_variant(const String& p_string) { ERR_FAIL_COND_V(params.size()!=1 && params.size()!=2,Variant()); int scode=0; - if (params[0].is_numeric()) + if (params[0].is_numeric()) { scode=params[0].to_int(); - else + if (scode < 10) { + scode=KEY_0+scode; + } + } else scode=find_keycode(params[0]); InputEvent ie; |
