You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
This commit is contained in:
committed by
AThousandShips
parent
0f95e9f8e6
commit
a1846b27ea
@@ -177,7 +177,7 @@ void AtlasMergingDialog::_update_texture() {
|
||||
}
|
||||
|
||||
void AtlasMergingDialog::_merge_confirmed(const String &p_path) {
|
||||
ERR_FAIL_COND(!merged.is_valid());
|
||||
ERR_FAIL_COND(merged.is_null());
|
||||
|
||||
Ref<ImageTexture> output_image_texture = merged->get_texture();
|
||||
output_image_texture->get_image()->save_png(p_path);
|
||||
@@ -269,7 +269,7 @@ void AtlasMergingDialog::_notification(int p_what) {
|
||||
}
|
||||
|
||||
void AtlasMergingDialog::update_tile_set(Ref<TileSet> p_tile_set) {
|
||||
ERR_FAIL_COND(!p_tile_set.is_valid());
|
||||
ERR_FAIL_COND(p_tile_set.is_null());
|
||||
tile_set = p_tile_set;
|
||||
|
||||
atlas_merging_atlases_list->clear();
|
||||
|
||||
Reference in New Issue
Block a user