mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use get_slicec instead of get_slice for single character splitters
This commit is contained in:
parent
b5bdb88062
commit
466590d0ec
58 changed files with 210 additions and 210 deletions
|
|
@ -274,7 +274,7 @@ float AudioEffectChorus::get_dry() const {
|
|||
|
||||
void AudioEffectChorus::_validate_property(PropertyInfo &p_property) const {
|
||||
if (p_property.name.begins_with("voice/")) {
|
||||
int voice_idx = p_property.name.get_slice("/", 1).to_int();
|
||||
int voice_idx = p_property.name.get_slicec('/', 1).to_int();
|
||||
if (voice_idx > voice_count) {
|
||||
p_property.usage = PROPERTY_USAGE_NONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue