mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Rename empty() to is_empty()
This commit is contained in:
parent
886571e0fc
commit
5b937d493f
289 changed files with 898 additions and 898 deletions
|
@ -59,7 +59,7 @@ void ShaderFileEditor::_version_selected(int p_option) {
|
|||
ERR_FAIL_COND(bytecode.is_null());
|
||||
|
||||
for (int i = 0; i < RD::SHADER_STAGE_MAX; i++) {
|
||||
if (bytecode->get_stage_bytecode(RD::ShaderStage(i)).empty() && bytecode->get_stage_compile_error(RD::ShaderStage(i)) == String()) {
|
||||
if (bytecode->get_stage_bytecode(RD::ShaderStage(i)).is_empty() && bytecode->get_stage_compile_error(RD::ShaderStage(i)) == String()) {
|
||||
stages[i]->set_icon(Ref<Texture2D>());
|
||||
continue;
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ void ShaderFileEditor::_update_options() {
|
|||
for (int i = 0; i < RD::SHADER_STAGE_MAX; i++) {
|
||||
Vector<uint8_t> bc = bytecode->get_stage_bytecode(RD::ShaderStage(i));
|
||||
String error = bytecode->get_stage_compile_error(RD::ShaderStage(i));
|
||||
bool disable = error == String() && bc.empty();
|
||||
bool disable = error == String() && bc.is_empty();
|
||||
stages[i]->set_disabled(disable);
|
||||
if (!disable) {
|
||||
if (stages[i]->is_pressed()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue