mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Make hex_to_int and bin_to_int handle the prefix automatically
Also add BinToInt to C#
This commit is contained in:
parent
726967f453
commit
a3e3bf8227
7 changed files with 84 additions and 37 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue