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
|
|
@ -165,7 +165,7 @@ bool OptionButton::_set(const StringName &p_name, const Variant &p_value) {
|
|||
_select(index, false);
|
||||
}
|
||||
|
||||
const String property = sname.get_slice("/", 2);
|
||||
const String property = sname.get_slicec('/', 2);
|
||||
if (property == "text" || property == "icon") {
|
||||
_queue_update_size_cache();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue