1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Make hex_to_int and bin_to_int handle the prefix automatically

Also add BinToInt to C#
This commit is contained in:
Aaron Franke
2021-01-28 07:39:05 -05:00
parent 726967f453
commit a3e3bf8227
7 changed files with 84 additions and 37 deletions

View File

@@ -643,7 +643,7 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
}
if (hexa_found) {
tk.constant = (double)str.hex_to_int(true);
tk.constant = (double)str.hex_to_int();
} else {
tk.constant = str.to_float();
}