You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Replace error checks against size with is_empty
This commit is contained in:
@@ -154,7 +154,7 @@ void MultiMeshEditor::_populate() {
|
||||
area_accum += area;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_MSG(triangle_area_map.size() == 0, "Couldn't map area.");
|
||||
ERR_FAIL_COND_MSG(triangle_area_map.is_empty(), "Couldn't map area.");
|
||||
ERR_FAIL_COND_MSG(area_accum == 0, "Couldn't map area.");
|
||||
|
||||
Ref<MultiMesh> multimesh = memnew(MultiMesh);
|
||||
|
||||
Reference in New Issue
Block a user