Cleanup: Use CurvesGeometry::is_empty()

Instead of testing the number of points/curves against 0,
use the `is_empty()` function.
This commit is contained in:
Falk David
2025-06-03 15:00:23 +02:00
parent e71a1bbf70
commit 73dc112a94

View File

@@ -1631,7 +1631,7 @@ static wmOperatorStatus object_origin_set_exec(bContext *C, wmOperator *op)
continue;
}
if (curves.points_num() == 0) {
if (curves.is_empty()) {
continue;
}