mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Replace error checks against size with is_empty
This commit is contained in:
parent
94dbf69f5d
commit
684752e75b
58 changed files with 116 additions and 116 deletions
|
|
@ -280,7 +280,7 @@ void GPUParticles2DEditorPlugin::_generate_emission_mask() {
|
|||
valid_normals.resize(vpc);
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_MSG(valid_positions.size() == 0, "No pixels with transparency > 128 in image...");
|
||||
ERR_FAIL_COND_MSG(valid_positions.is_empty(), "No pixels with transparency > 128 in image...");
|
||||
|
||||
Vector<uint8_t> texdata;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue