You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Replace error checks against size with is_empty
This commit is contained in:
@@ -201,7 +201,7 @@ void CPUParticles2DEditorPlugin::_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...");
|
||||
|
||||
if (capture_colors) {
|
||||
PackedColorArray pca;
|
||||
|
||||
Reference in New Issue
Block a user