Fix: Incorrect assert in curves code
The attribute data might be null if the number of curves is zero. While that is not common, an empty curves data-block is valid.
This commit is contained in:
parent
ee160630c6
commit
4f2f3114b7
|
@ -145,7 +145,6 @@ MutableSpan<int8_t> CurvesGeometry::curve_types()
|
|||
nullptr,
|
||||
this->curve_size,
|
||||
ATTR_CURVE_TYPE.c_str());
|
||||
BLI_assert(data != nullptr);
|
||||
return {data, this->curve_size};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue