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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user