Cleanup: Use simpler check for Bezier curves
This commit is contained in:
parent
c6e4953719
commit
f5128f219f
|
@ -956,13 +956,13 @@ static void transform_positions(MutableSpan<float3> positions, const float4x4 &m
|
|||
|
||||
void CurvesGeometry::calculate_bezier_auto_handles()
|
||||
{
|
||||
const VArray<int8_t> types = this->curve_types();
|
||||
if (types.is_single() && types.get_internal_single() != CURVE_TYPE_BEZIER) {
|
||||
if (!this->has_curve_with_type(CURVE_TYPE_BEZIER)) {
|
||||
return;
|
||||
}
|
||||
if (this->handle_positions_left().is_empty() || this->handle_positions_right().is_empty()) {
|
||||
return;
|
||||
}
|
||||
const VArray<int8_t> types = this->curve_types();
|
||||
const VArray<bool> cyclic = this->cyclic();
|
||||
const VArraySpan<int8_t> types_left{this->handle_types_left()};
|
||||
const VArraySpan<int8_t> types_right{this->handle_types_right()};
|
||||
|
|
Loading…
Reference in New Issue